执行 gulp prod 后 dist 目录只有 index.html
Closed this issue · 1 comments
gd4Ark commented
当我 git clone 此项目后,安装依赖,执行 gulp prod
,得到输出:
[18:18:28] Using gulpfile ~/Projects/wechat-h5-boilerplate/gulpfile.js
[18:18:28] Starting 'prod'...
[18:18:28] Starting 'minify-css'...
[18:18:28] Starting 'uglify-js'...
[18:18:28] Finished 'minify-css' after 11 ms
[18:18:28] Finished 'uglify-js' after 5.94 ms
[18:18:28] Starting 'inject-min'...
[18:18:28] Starting 'del-bundle'...
[18:18:28] Finished 'del-bundle' after 5 ms
[18:18:28] gulp-inject Nothing to inject into index.html.
[18:18:28] Finished 'inject-min' after 16 ms
[18:18:28] Finished 'prod' after 30 ms
而 app/dist 只有一个 index.html 文件,在此期间我并没有修改任意一行代码。
ps: prod dev 是正常的
gd4Ark commented
解决了,先执行一次 gulp dev
,再 gulp prod
就好了