uil provided true initial class pro ack strong
webpack 2.0 系列
1,output path 路径必须为 absolute path.
- {
- entry: './src/app.js',
- output: {
- filename: 'bundle.js',
- path: __dirname + '/build'
- }
- }
The output directory as anabsolute path(required).
- output.path
若写为: path:"./dist/js" 则报错如下:Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.context: The provided value "./dist/js" is not an absolute path!
Webpack 学习记录 - 01
来源: http://www.bubuko.com/infodetail-2093272.html