在生产站点中,我可以看到单独的js文件,而不是连接的文件应用程序JavaScript和CSS文件。首先,我运行命令grunt build,输出是
$ grunt build
Running "env:dev" (env) task
Running "sass:dist" (sass) task
Running "less:dist" (less) task
Running "jshint:all" (jshint) task
>> 272 files lint free.
Running "ngAnnotate:production" (ngAnnotate) task
>> 1 file successfully generated.
Running "uglify:production" (uglify) task
>> 1 file created.
Running "cssmin:combine" (cssmin) task
>> 1 file created. 193.41 kB → 144.31 kB
Done, without errors.
此命令在dist文件夹中创建3个文件,我还从.gitignore中删除了public / dist文件夹。我的公开文件夹包含 dist 文件夹,但在使用pm2重新开始制作后,结果仍然相同。它不是从dist文件夹加载文件
pm2 restart 0 --env production
[My MeanJS App][1]