Open brianephraim opened 7 years ago
@defualt did you ever get this working?
No, I replaced webpack-stream with a simpler Webpack/Gulp integration like this.
gulp.task('webpack', function(cb){
webpack(require('./webpack.config.js'));
});
This is fine for development, but I will need more features when I write my production build task.
@defualt Just figured it out. I had to install the correct version of node-sass
. In my case I had to downgrade to 3.8.0
.
I got the same issue on: sass-loader: 6.0.5 webpack: 2.4.1
Here is the config of scss:
{
test: /\.scss$/,
use: extractTextPlugin.extract({
fallback: 'style-loader',
use: [
'css-loader',
'sass-loader'
],
publicPath: env.DIST
})
}
relevant package.json
relevant gulpfile contents
relevant webpack.config.module.loaders
test.scss
test2.scss
require from entry.js
Gulp logs this strange error, and build fails
If I comment out
@import 'test2';
from test.scss, the build succeeds.I believe the issue lies with
webpack-stream
because I can create a successful build if I take it out of the equation with a test task like this: