Skip to content

Instantly share code, notes, and snippets.

@shirokuro331
Last active December 14, 2015 12:59
Show Gist options
  • Select an option

  • Save shirokuro331/5090092 to your computer and use it in GitHub Desktop.

Select an option

Save shirokuro331/5090092 to your computer and use it in GitHub Desktop.
npm install grunt-contrib-sass
module.exports = function(grunt) {
grunt.initConfig({
sass: {
dist: {
files: {
'css/style.css': // コンパイル後のフォルダとファイル
[
'_scss/*.scss' // 元ファイル
]
}
}
}
});
// gruntタスクライブラリを読み込み
grunt.loadNpmTasks('grunt-contrib-sass');
// デフォルトで実行するタスク
grunt.registerTask('default', 'sass');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment