-
-
Notifications
You must be signed in to change notification settings - Fork 430
Closed
Labels

Description
I have a folder structure like this:
- <Project root>
- Assets
- css
- bundles
- modules
- css
- Assets
Webpack is run from <Project root> with the config file residing in <Project root>/Assets
In normalizeOptions.js the sourceMap option is overriden like this:
options.sourceMap = path.join(process.cwd(), "/sass.map")
All SourceMap paths of imported files look like this:
./Assets/css/bundles/Assets/css/modules/utils/_mixins.scss
This is very wrong.
If i comment out that line and set sourceMap option manually, i can get sourceMaps to work:
loader: "sass-loader",
options: {
sourceMap: path.resolve(__dirname, "css/bundles/bundle.css")
}
SourceMap paths now look correct:
./Assets/css/modules/utils/_mixins.scss