我第一次尝试运行web Pack-4。
webpack ./src/js/app.js ./dist/app.bundle.js
<>strong>it表示警告/错误:
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 ./src/js/app.js ./dist/app.bundle.js
Module not found: Error: Can t resolve ./dist/app.bundle.js in D:wamp64wwwwebpack-4
@ multi ./src/js/app.js ./dist/app.bundle.js
www.un.org/Depts/DGACM/index_spanish.htm 然后,我试图改变“
webpack --mode development
它表明:
ERROR in Entry module not found: Error: Can t resolve ./src