一、打包注意点
(1)在man.js中注释掉mode:history,这个只有在开启服务器下才有效;
(2)在webpack.prod.config.js中把输出改为output:‘./dist‘
二、截图
三、源码
一、打包注意点
(1)在man.js中注释掉mode:history,这个只有在开启服务器下才有效;
(2)在webpack.prod.config.js中把输出改为output:‘./dist‘
二、截图
三、源码
原文:https://www.cnblogs.com/lazar/p/8438823.html