javascript - sass with gruntjs doesn't work -
the livereload worked sass isn't output css. no error shown in terminal. below gruntfile.js
module.exports = function (grunt) { grunt.initconfig({ pkg: grunt.file.readjson('package.json'), watch: { sass: { files: ['components/sass/*.{scss,sass}'], tasks: ['sass'], options: { livereload: true } }, livereload: { files: ['**/*'], options: { livereload: true } } }, sass: { options: { sourcemap: true, outputstyle: 'compressed' }, files: { 'css/styles.css': 'components/sass/styles.scss' } } }); grunt.registertask('default', ['sass', 'watch']); grunt.loadnpmtasks('grunt-sass'); grunt.loadnpmtasks('grunt-contrib-watch'); }
anything did wrongly here?
Comments
Post a Comment