Answer the question
In order to leave comments, you need to log in
What's wrong with gruntfile.js?
I started to learn grunt, but so far without much success. When compiling stylus to css, the semicolons at the last properties disappear.
For example:
nav a:hover
color #DF4A38
nav a:hover {
color: #df4a38
}
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
stylus: {
compile: {
options: {
paths: ['styles/'],
compress: true
},
files: {
'styles/css/main.css' : 'styles/main.styl'
}
}
},
watch: {
stylus: {
files: ['styles/*.styl'],
tasks: ['stylus'],
},
livereload: {
options: { livereload: true },
files: ['**/*'],
}
}
});
grunt.loadNpmTasks('grunt-contrib-stylus');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['stylus', 'autoprefixer','watch']);
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question