-
-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instructions regarding source maps are incorrect #150
Comments
When I use autoprefixer-loader it produces even more weird source path: Here is my webpack config:
|
@jhnns, could you please explain what did you change to resolve the issue with source maps paths? |
The weird paths are created by the css-loader. Take a look at my PR for further information. |
@jhnns, your link points to 404 page. |
Thank you, it works perfectly for me! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The README says that you have to use the extract-text-webpack-plugin to get source maps working, however that is not entirely correct. You can get it working that way, but that will make it impossible to get livereload (or hmr) working.
After following the conversion in a closed ticket webpack-contrib/extract-text-webpack-plugin/issues/30, @sokra said that the extract-text plugin is not supposed to be used in development. If you want to get sourcemaps working, you just have to add ?sourceMap to both the css loader, and the scss loader, like this:
This will allow both live reloading, and sourcemaps to work, without involving the extract-text plugin at all. It does have a bit of a weird file name in Chrome, but clicking on it takes you to the correct file and line number. From my rudimentary testing, the value of the "devtool" flag doesn't seem to effect the generated sourcemaps at all, it works for me with both "eval", "source-map".
The text was updated successfully, but these errors were encountered: