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

运行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 关注
  • 1953 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信