问答详情
源自:1-2 Webpack 安装和命令行

打包不成功

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]


提问者:慕运维4553368 2018-08-01 19:34

个回答

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

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