0
내가 툴킷을 빌드 도구로 사용하는 오래된 프로젝트에서 작업 할 때 노드 새시를 다시 빌드 할 수 있기 때문에 새로운 버전의 노드를 설치해야했다. 이제 내가 sass 파일을 변경하려고 할 때 무언가를 실행하면 아무 것도 컴파일되지 않았다. 이것은 내 Gruntfile.js
:그란트가 새틀 라이트를 컴파일하지 않는다
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options: {
outputStyle: 'compressed',
sourceComments: 'none'
},
files: {
'css/app.css': 'scss/app.scss'
}
},
dev: {
options: {
outputStyle: 'expanded',
sourceComments: 'map',
sourceMap: 'app.css.map'
},
files: {
'css/app.css': 'scss/app.scss'
}
}
},
watch: {
grunt: { files: ['Gruntfile.js'] },
sass: {
files: 'assets/scss/**/*.scss',
tasks: ['sass:dev']
},
css: {
files: ['assets/css/*.css'],
tasks: [],
options: {
livereload: true
}
}
}
});
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('build', ['sass:dist']);
grunt.registerTask('default', ['sass:dev', 'watch']);
}
어떻게 해결할 수 있습니까?