grunt-contrib-sass

How to compile multiple scss files using grunt-sass

旧城冷巷雨未停 提交于 2019-12-21 06:48:59
问题 I am trying to compile multiple .scss files into a single CSS file. This actually works but only grabs the first file... sass: { // Task dist: { files: { 'css/test.css':'sass/*.scss' } } } We don't have ruby installed so grunt-contrib-sass is not an option. I do the same thing in Stylus like this... stylus: { compile : { files : { 'css/g.css' : 'stylus/*.styl' } } } 回答1: What about running grunt-contrib-concat first? concat: { dist: { src: [ 'sass/*.scss', ], dest: 'sass/build.scss', } },

Grunt dynamic dest location sass

≡放荡痞女 提交于 2019-12-10 20:45:32
问题 This could possibly be a repeat question but I couldn't figure out a solution for my requirement I am trying to create a sass grunt task which can generate css files in a dynamic location. Here is my structure /components --> xyz --> scss --> xyz.a.scss --> xyz.b.scss --> abc --> scss --> abc.a.scss --> abc.b.scss Can the grunt task create a new folder relative to its component i.e /components --> xyz --> scss --> xyz.a.scss --> xyz.b.scss --> css --> xyz.a.css --> xyz.b.css --> abc --> scss

How to compile multiple scss files using grunt-sass

拜拜、爱过 提交于 2019-12-03 22:13:38
I am trying to compile multiple .scss files into a single CSS file. This actually works but only grabs the first file... sass: { // Task dist: { files: { 'css/test.css':'sass/*.scss' } } } We don't have ruby installed so grunt-contrib-sass is not an option. I do the same thing in Stylus like this... stylus: { compile : { files : { 'css/g.css' : 'stylus/*.styl' } } } What about running grunt-contrib-concat first? concat: { dist: { src: [ 'sass/*.scss', ], dest: 'sass/build.scss', } }, sass: { // Task dist: { files: { 'css/test.css':'sass/build.scss' } } } and then task: grunt.registerTask('sass

What causes this error in grunt-contrib-compass after update to Yosemite?

那年仲夏 提交于 2019-11-29 18:55:41
问题 I am using Yeoman. After upgrading to Yosemite, the tasks grunt server and grunt build throw this error: /Users/rogerfuentes/Documents/Web/Kelios/test/node_modules/grunt-contrib-compass/node_modules/tmp/lib/tmp.js:261 throw err; ^ Error: spawn ENOENT at errnoException (child_process.js:1001:11) at Process.ChildProcess._handle.onexit (child_process.js:792:34) What is causing this error, and how can it be fixed? 回答1: If you run compass on the terminal window, you will see the following error: