Giter Club home page Giter Club logo

Comments (9)

w0rm avatar w0rm commented on May 22, 2024 2

@vkrol works without {includeContent: false, sourceRoot: '/styles/'} option, because sourceRoot path points to a wrong place. Deleting the options works, it will include all the original sources into the source map, which is the recommended way.

If you really want to serve the sources from disk, then you have to pass the correct sourceRoot, that is ../styles/bundles/.

../a.css is relative to bundle.css in the sources, bundle.css is written to the build folder, so you need to go one level up, and then into the original path of bundle.css.

from postcss-import.

MoOx avatar MoOx commented on May 22, 2024

I don't use sourcemap, but I think postcss is pretty good at it.
We currently have some tests for it. Seems related to https://github.com/cssnext/gulp-cssnext/issues/6

@ai postcss-import is just moving some node, this should not affect source (so sourcemap) right ?

from postcss-import.

tgfjt avatar tgfjt commented on May 22, 2024

πŸ”” I got same issue probably.

from postcss-import.

zcoding avatar zcoding commented on May 22, 2024

same 😹

from postcss-import.

RyanZim avatar RyanZim commented on May 22, 2024

Does anyone still have this issue with the latest versions of everything?

from postcss-import.

RyanZim avatar RyanZim commented on May 22, 2024

I get the same results with the latest version.

@w0rm @ai Any ideas? I don't use gulp; is the gulpfile correct?

from postcss-import.

ai avatar ai commented on May 22, 2024

It is gulp-postcss issue, as I understand. postcss-import doesn’t do anything with source maps, as I understand. But gulp-postcss could miss src β†’ dest changes.

from postcss-import.

vkrol avatar vkrol commented on May 22, 2024

@w0rm thanks!

from postcss-import.

kittenlogic avatar kittenlogic commented on May 22, 2024

@w0rm Thank You! Was having the same problem.

from postcss-import.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.