This is my production webpack config. The two quotes in the title refer to webpack2 and webpack respectively. Both hang for me with a similar error.
This is my command t
In my case I was trying to use Angular 4, Webpack 3, AOT and lazy loading.
Using @ngtools/webpack
and AotPlugin made it freeze at 95%.
What fixed was:
1). Install node-sass
with npm install node-sass --no-bin-links
, because it was not installed automatically with sass-loader
.
2). Adding these loaders for the SCSS/CSS files (even inside node modules):
{
test: /\.css$/,
use: [
'style-loader',
'css-loader'
]
},
{
test: /\.scss$/,
use: [
'raw-loader',
'sass-loader'
]
}