【发布时间】:2015-09-15 01:26:15
【问题描述】:
我已经开始了一个项目:
$ yo angular
include Twitter Bootstrap? Yes
use the SCSS version of Twitter Bootstrap with the Compass CSS Authoring Framework? Yes
$ grunt watch
我更改了 app/stypes 目录中的 main.scss 文件,我在控制台中看到它已更改,但没有生成 CSS 文件。怎么回事?
当前的咕噜声说:
// Watches files for changes and runs tasks based on the changed files
watch: {
bower: {
files: ['bower.json'],
tasks: ['wiredep']
},
js: {
files: ['<%= yeoman.app %>/scripts/{,*/}*.js'],
tasks: ['newer:jshint:all'],
options: {
livereload: '<%= connect.options.livereload %>'
}
},
jsTest: {
files: ['test/spec/{,*/}*.js'],
tasks: ['newer:jshint:test', 'karma']
},
compass: {
files: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
tasks: ['compass:server', 'autoprefixer']
},
gruntfile: {
files: ['Gruntfile.js']
},
livereload: {
options: {
livereload: '<%= connect.options.livereload %>'
},
files: [
'<%= yeoman.app %>/{,*/}*.html',
'.tmp/styles/{,*/}*.css',
'<%= yeoman.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
]
}
},
【问题讨论】:
-
你配置你的 grunt 来编译你的 SCSS 吗?
-
我认为 grunt 应该因为 yeoman 就已经准备好了?
-
你可以在这里发布你的配置吗?
-
它是 yo angular 自带的默认值。哪个配置文件?
标签: javascript twitter-bootstrap sass npm yeoman