-
-
Notifications
You must be signed in to change notification settings - Fork 208
Closed
Description
The latest webpack beta now validates the configuration object, which breaks this usage as the postcss key in the configuration is not part of the validated schema. See release notes here: https://github.com/webpack/webpack/releases/tag/v2.1.0-beta.23
module.exports = {
module: {
loaders: []
},
postcss: function () {}
}
The entire output is:
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration has an unknown property 'postcss'. These properties are valid:
object { amd?, bail?, cache?, context?, devServer?, devtool?, entry, externals?, loader?, module?, name?, dependencies?, node?, output?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, stats?, target?, watch?, watchOptions? }
I understand this is for a webpack 2 beta, and probably should wait until the features stabilize. Who knows if this configuration validation will land in the final version...
For now I've locked webpack@2.1.0-beta.21
phyllisstein, grrowl, stevewillard, FourwingsY, leesiongchan and 47 more
Metadata
Metadata
Assignees
Labels
No labels