cssnext-loader icon indicating copy to clipboard operation
cssnext-loader copied to clipboard

Source map paths are wrong

Open Swatinem opened this issue 9 years ago • 3 comments

When I’m using source maps in the css loader (css-loader?sourceMap), I get paths like this: webpack:///./css/index.css But when I add the cssnext loader (css-loader?sourceMap!cssnext-loader) the sourcemap paths get all wrong: webpack:///index.css

Its even worse when I’m using absolute file:// paths.

Swatinem avatar Mar 17 '15 10:03 Swatinem

I don't really use sourcemap, so not sure what might cause the issue. That being said, if you want someone to fix the bug you are reporting, you can help by providing a broken test or something more than "it does not work".

MoOx avatar Mar 17 '15 10:03 MoOx

Ok, I will investigate this later on.

Also, webpacks -p (for minification) is broken as well, it just spews some obscure errors. I will look into it as well.

Swatinem avatar Mar 17 '15 11:03 Swatinem

See https://github.com/webpack/css-loader/issues/36 for -p issues (css-loader is using an outdated css parser)

MoOx avatar Mar 17 '15 12:03 MoOx