You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration has an unknown property '0'. These properties are valid:
object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, experiments?, externals?, externalsPresets?, externalsType?, ignoreWarnings?, infrastructureLogging?, loader?, mode?, module?, name?, node?, optimization?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, snapshot?, stats?, target?, watch?, watchOptions? }
-> Options object as provided by the user.
For typos: please correct them.
For loader options: webpack >= v2.0.0 no longer allows custom properties in configuration.
Loaders should be updated to allow passing options via loader options in module.rules.
Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:
plugins: [
new webpack.LoaderOptionsPlugin({
// test: /\.xxx$/, // may apply this only for some modules
options: {
0: …
}
})
]
…guration file
When use a custom configuration file for webpack build target allow to run webpack with
multiple
configuration options.
ISSUES CLOSED: nrwl#9186
…guration file (#9188)
When use a custom configuration file for webpack build target allow to run webpack with
multiple
configuration options.
ISSUES CLOSED: #9186
Current Behavior
Assigning a custom webpack configuration file does not support the ability to use multiple configurations, as webpack allows.
Expected Behavior
Being able to define multiple configurations in my custom webpack.config.ts file to feed to webpack
Steps to Reproduce
set a custom webpack config option in build target options on project.json.
define custom webpack configuration
Run
yarn nx app-name:build
Failure Logs
Environment
The text was updated successfully, but these errors were encountered: