私はこのスタックを使用します:
注意事項
しかし、x100xxx の方がはるかに高速です...!
ここでもっと読む:
http://benfrain.com/lightning-fast-sass-compiling-with-libsass-node-sass-and-grunt-sass/
例
ページでライブ リロードを有効にするには、body 終了タグの前に script タグを追加します。
<script src="//localhost:35729/livereload.js"></script>
これはGruntfile.jsの例です:
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
sass: {
dist: {
options: {
outputStyle: "nested"
},
files: {
"dist/css/app.css": "src/scss/app.scss"
}
}
},
watch: {
options: {
livereload: true
},
grunt: {
files: ["Gruntfile.coffee"]
},
sass: {
files: "src/scss/app.scss",
tasks: ["sass"]
}
}
});
grunt.loadNpmTasks("grunt-sass");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.registerTask("build", ["sass"]);
grunt.registerTask("default", ["build", "watch"]);
};