为了账号安全,请及时绑定邮箱和手机立即绑定

运行webpack时,输出这样的提示是什么问题?

运行webpack时,输出这样的提示是什么问题?

时光有染 2017-02-25 19:41:46
liubin_PC@DESKTOP-9UIIDU6 MINGW32 /e/webpack/webpack-test$ webpackNo configuration file found and no output filename configured via CLI option.A configuration file could be named 'webpack.config.js' in the current directory.Use --help to display the CLI options.
查看完整描述

1 回答

已采纳
?
滄浪之水

TA贡献15条经验 获得超2个赞

webpack 运行会去查找webpack.config.js 文件,如果没有找到会报错

如果不想用webpack.config.js,可以用--config指定特定的文件

$ webpack --config YOURJSFILE.js

查看完整回答
反对 回复 2017-02-26
  • 1 回答
  • 0 关注
  • 2027 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号