打包不成功

来源:1-2 Webpack 安装和命令行

慕运维4553368

2018-08-01 19:34

WARNING in configuration

The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.

You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/


ERROR in multi ./hello.js hello.bundle.js

Module not found: Error: Can't resolve 'hello.bundle.js' in 'C:\xampp\htdocs\test\webpack-pro'

 @ multi ./hello.js hello.bundle.js main[1]


写回答 关注

1回答

  • xizhjxust
    2018-08-01 23:06:10

    webpack hello.js -o hello.bundle.js --mode development

    啊猿

    谢谢宁

    2020-01-20 15:25:33

    共 1 条回复 >

webpack深入与实战

webpack实战教程,用真实项目带你探索 webpack 强大的功能

86561 学习 · 721 问题

查看课程

相似问题