Spaces:
Runtime error
Runtime error
File size: 582 Bytes
8969f81 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
const __path = require('path');
const CWD = __path.normalize(`${__dirname}/../front`);
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['less']);
grunt.initConfig({
less: {
options: {
compress: false,
},
dist: {
src: [
`${CWD}/less/style.less`,
],
dest: `${CWD}/build/style.css`
}
},
watch: {
options: {
livereload: true,
cwd: CWD,
},
files: ["views/*", "less/*", "build/**/*.js"],
tasks: 'default'
},
});
};
|