[英]angularjs code is not working after grunt build
我遇到了這個問題,無法找到解決問題的答案。
我已經用grunt構建系統創建了小的Angularjs代碼。
Bower.json http://pastebin.com/8AScfd7d
Gruntfile.js http://pastebin.com/e0d7QLGG
log.txt(咕---force) http://pastebin.com/MYk9iR53
index.html http://pastebin.com/B48w0Z58
使用grunt --force命令進行構建。
當我運行該版本時,它不會在控制台中顯示任何錯誤,並且在netowek選項卡下,所有腳本都可以正常加載,但沒有任何反應。 如果我用源腳本替換了縮小的腳本標簽(我的自定義代碼),它將開始工作。
用盡主意可能是什么問題。
在Gruntfile.js中將ngMin替換為ngAnnotate,並在grunt構建任務中添加了“ ngAnnotate:dist”。
/*ngmin: {
dist: {
files: [{
expand: true,
cwd: '.tmp/concat/scripts',
src: '*.js',
dest: '.tmp/concat/scripts'
}]
}
},*/
ngAnnotate: {
dist: {
files: [
{
expand: true,
cwd: '.tmp/concat/scripts',
src: '*.js',
dest: '.tmp/concat/scripts'
}
]
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.