Closed legend80s closed 7 years ago
Solved! An includePaths
should be configured, When works with sass-loader
module.exports = {
...
module: {
loaders: [
{
test: /\.scss$/,
loaders: ["style", "css", "sass"]
}
]
},
sassLoader: {
includePaths: [path.resolve(__dirname, "./node_modules/compass-mixins/lib")]
}
};
When I prepend
@import "compass";
before the scss files, the Webpack sass-loader complains about: