See this gist.
Use npm run start (webpack-dev-server --mode development) to get webpack-dev-server up and running. npm run build works fine.
When I run ´npm run build´ I get the following output:
ï½¢wdsï½£: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.plugins[2] should be one of these:
object { apply, … } | function
-> Plugin of type object or instanceof Function
Details:
* configuration.plugins[2] should be an object.
-> Plugin instance
* configuration.plugins[2] should be an instance of function
-> Function acting as plugin
See the gist and come back with questions.
You have invalid configuration
plugins: [
isInProductionMode && new MiniCssExtractPlugin({
filename: '[name].styles.[chunkhash:4].css',
}),
],
rewrite this on
plugins: [].concat(
isInProductionMode
? [
new MiniCssExtractPlugin({
filename: '[name].styles.[chunkhash:4].css',
})]
: [])
],
Most helpful comment
You have invalid configuration
rewrite this on