我是个身材魁梧的新手,想用angular来运行angular。我的grunt文件看起来像这样,我需要添加哪个插件或模块来提供一个有角度的应用程序?我试过grunt-contrib-watch
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sassFiles: 'app/**/*.scss',
sass: {
dist: {
files: {
'build/site.css': 'app/site.scss'
}
}
},
watch: {
sass: {
tasks: ['sass'],
files: 'app/**/*.scss'
}
},
another: {
files: ['app/*.js'],
tasks: ['anothertask'],
options: {
// Start another live reload server on port 1337
livereload: 1337
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-sass');
grunt.registerTask('dev', ['default', 'watch','another']);
grunt.registerTask('default', ['sass']);
};发布于 2016-03-08 08:31:19
当文件更改(创建、更新等)时,监视运行任务。要提供一个有角度的应用程序,请尝试插件“咕噜-服务”。
https://stackoverflow.com/questions/35861107
复制相似问题