请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

正在回答 回答被采纳积分+3

2回答

提问者 xifenzs 2018-04-26 00:49:34

Hash: a048ac86f82c2ec36bd0

Version: webpack 4.6.0

Time: 125ms

Built at: 2018-04-26 00:46:58

 1 asset

Entrypoint main = main.js

[0] ./src/page/index/cats.js 61 bytes {0} [built]

[1] ./src/page/index/index.js 48 bytes {0} [built]

[2] multi ./src/page/index/index.js ./dist/app.js 40 bytes {0} [built]


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/page/index/index.js ./dist/app.js

Module not found: Error: Can't resolve './dist/app.js' in 'D:\git\mmall-fe'

 @ multi ./src/page/index/index.js ./dist/app.js


0 回复 有任何疑惑可以回复我~
  • 提问者 xifenzs #1
    出完这东西后,文件夹不出来
    回复 有任何疑惑可以回复我~ 2018-04-26 00:51:15
  • Rosen 回复 提问者 xifenzs #2
    npm ls webpack -g看你是不是装的4.x的版本,是的话换成1.15.0的
    回复 有任何疑惑可以回复我~ 2018-04-27 10:58:57
Rosen 2018-04-25 16:34:06

执行webpack-dev-server后的编译结果是在内存里,不会有文件生成

如果执行webpack后没有生成,那就是报错了或者路径不对

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信