首页 > Web开发 > 详细

Webpack 学习记录-01

时间:2017-05-29 12:43:05      阅读:526      评论:0      收藏:0      [点我收藏+]

Webpack 2.0系列

1,output path路径必须为absolute path.

{
  entry: ‘./src/app.js‘,
  output: {
    filename: ‘bundle.js‘,
    path: __dirname + ‘/build‘
  }
}
 

output.path  The output directory as an absolute path (required).

若写为:  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.cnblogs.com/happyfish321/p/6917704.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!