Sass 限制编译的SCSS文件数
有一个包含4个SCSS文件的文件夹,我只想在正常的基础上编译其中一个。其他的是SCSS文件的主题版本 这是我指南针的咕噜声部分。有人知道我怎样才能做到这一点吗Sass 限制编译的SCSS文件数,sass,gruntjs,compass,Sass,Gruntjs,Compass,有一个包含4个SCSS文件的文件夹,我只想在正常的基础上编译其中一个。其他的是SCSS文件的主题版本 这是我指南针的咕噜声部分。有人知道我怎样才能做到这一点吗 compass: { build: { options: { sassDir: 'app/scss', cssDir: 'build/css', imagesDir
compass: {
build: {
options: {
sassDir: 'app/scss',
cssDir: 'build/css',
imagesDir: 'app/images',
outputStyle: 'compressed', //expanded or nested or compact or compressed
httpStylesheetsPath: '/',
raw: 'Sass::Script::Number.precision = 16\n',
noLineComments: true,
relativeAssets: true
}
}
},
使用
然后我可以有不同的任务,比如构建。Fx构建,另一个构建,每个构建都有各自的选项,因为当我尝试这个时,grunt同时运行这两个。即使我写指南针:建立
compass: {
build: {
options: {
sassDir: 'app/scss',
cssDir: 'build/css',
specify: 'build/css/file.scss'
imagesDir: 'app/images',
outputStyle: 'compressed', //expanded or nested or compact or compressed
httpStylesheetsPath: '/',
raw: 'Sass::Script::Number.precision = 16\n',
noLineComments: true,
relativeAssets: true
}
}
},