Closed eq2kazial closed 7 years ago
Related to this https://github.com/webpack/webpack/issues/3018. For postcss the solution is to move the configuration to a plugin
plugins: [
// You should be able to remove the block below when the following
// issue has been correctly handled (and postcss-loader supports
// "plugins" option directly in "query")
// https://github.com/postcss/postcss-loader/issues/99
new webpack.LoaderOptionsPlugin({
test: /\.css$/,
options: {
postcss: previousPostCSSPluginsFunction,
// required to avoid issues with other loader (eg: css-loader?modules)
// this is normally the default value, but when we use
// LoaderOptionsPlugin, we must specify it again, otherwise,
// context is missing (and css modules names can be broken)!
context: __dirname,
},
}),
where should I place the plug in? which file?
See #413 for the fix ;)
@iam4x Updated to latest Dev build tonight and the Electron console doesn't work. This error appears in terminal:
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.