我使用grunt uglify在dist /文件夹中为我的网站生成所有缩小的js,css ...
我的app文件夹目前看起来像这样:
app
dist
scripts
controllers
services
directives
bower_components
node_modules
我的网站结构看起来像这样:
app
scripts
controllers
services
directives
bower_components
node_modules
我的index.html看起来像这样:
<script src="scripts/app.js"></script>
<script src="scripts/routes.js"></script>
<script src="js/sb-admin-2.js"></script>
<script src="scripts/controllers/AuthController.js"></script>
<script src="scripts/controllers/UserController.js"></script>
和router.js看起来像这样:
resolve: {
loadMyFiles: function ($ocLazyLoad) {
return $ocLazyLoad.load({
name: 'venture',
files: [
'scripts/controllers/CaptableController.js',
'scripts/controllers/TeamController.js',
'scripts/services/TeamService.js',
]
})
}
}
如果我改变所有js,css脚本的dist / scripts / ....的每个引用的路径,那么我的网站现在无法正常工作。