Answer the question
In order to leave comments, you need to log in
Grunt and Less? No "less" targets found?
Installed via angular-generator (Yeoman) the structure of the future project.
I plan to use LESS.
What I have:
npm install grunt-contrib-less --save-dev
Gruntfile.js
watch: {
tests: '<%= nodeunit.tests %>',
tasks: 'default',
styles: {
files: ['app/styles/less/*.less'], // which files to watch
tasks: ['less']
}
},
less: {
development: {
options: {
paths: ["app/styles/less"],
yuicompress: true
},
files: {
// target.css file: source.less file
"app/styles/main.css": "app/styles/less/main.less"
}
}
},
Answer the question
In order to leave comments, you need to log in
Do you already have something in "app/styles/less"? Have you checked the paths?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question