運行報錯這段代碼
E:\test\demo2>webpack
Invalid configuration object. Webpack has been initialised using a configuration
?object that does not match the API schema.
?- configuration has an unknown property 'plugin'. These properties are valid:
?? object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?,
entry, externals?, loader?, module?, name?, node?, output?, performance?, plugin
s?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, res
olveLoader?, stats?, target?, watch?, watchOptions? }
?? For typos: please correct them.
?? For loader options: webpack 2 no longer allows custom properties in configura
tion.
???? Loaders should be updated to allow passing options via loader options in mo
dule.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: {
?????????? plugin: ...
???????? }
?????? })
???? ]
2017-03-16
我已經把老師的教程看完了,代碼敲了一遍,都運行成功了。有問題可以@我
2019-01-25
2018-03-20
能幫忙看一下嗎??不知道怎么解決了
2018-03-07
在webpack.config.js配置文件里面, 你是不是有個屬性寫錯了
2018-01-18
__dirname+'/src/js/main.js';
2018-01-10
求助+1
2017-04-12
感謝+1
2017-03-23
出現這個什么原因?
2017-03-20
webpack多頁面,報這樣的錯誤,如果我把chunks去掉就不報錯了,但是a,b,c三個html就一樣了,怎么破解?大牛們@me一下
2017-03-16
除了安裝npm install postcss-loader --save-dev外,還要npm install?postcss??--save-dev