Comments (9)
@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.
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.
π I got same issue probably.
from postcss-import.
same πΉ
from postcss-import.
Does anyone still have this issue with the latest versions of everything?
from postcss-import.
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.
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.
@w0rm thanks!
from postcss-import.
@w0rm Thank You! Was having the same problem.
from postcss-import.
Related Issues (20)
- Issue with `@layer`s HOT 12
- Plugin is stripping the layer off of a remote url import HOT 1
- Incorrect media query concats HOT 8
- Mention postcss-import-url in docs? HOT 3
- Use the dedicated PostCSS API for errors HOT 2
- Document that all forms of `url` are supported
- Plugins docs HOT 5
- Not able to use postcss-import. Giving error ->Unable to resolve @import "variables.css" HOT 1
- Failed to find file HOT 5
- How to deal with SCSS syntax ? HOT 12
- import inside a selector HOT 1
- Supports at rule not working
- Ignored imports cause re-ordering of CSS HOT 2
- URL's with a fragment or query aren't skipped and give a file not found error HOT 1
- Ignore comments for "postcss-import: `@charset` must precede all other statements" HOT 2
- Drop old Node version support
- Fails with `postcss` 8.4.33, `original.line and original.column are not numbers` HOT 2
- Emitted `@media` AtRules are invalid HOT 4
- Default Imports HOT 3
- Support a way to process a URL with fragments HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postcss-import.