grunt-contrib-sass メモ https://npmjs.org/package/grunt-contrib-sass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install grunt-contrib-sass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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