Answer the question
In order to leave comments, you need to log in
How to build sourcemap in grunt from less?
How to build sourcemap in grunt from less?
I tried it doesn't work)
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
less: {
development: {
options: {
paths: ['theme-framework/theme-style/css/less']
},
files: {
'theme-framework/theme-style/css/style.css': 'theme-framework/theme-style/css/less/style.less',
'theme-framework/theme-style/css/adaptive.css': 'theme-framework/theme-style/css/less/adaptive.less',
'tribe-events/cmsmasters-framework/theme-style/css/plugin-style.css': 'tribe-events/cmsmasters-framework/theme-style/css/less/plugin-style.less',
'tribe-events/cmsmasters-framework/theme-style/css/plugin-adaptive.css': 'tribe-events/cmsmasters-framework/theme-style/css/less/plugin-adaptive.less',
'woocommerce/cmsmasters-framework/theme-style/css/plugin-style.css': 'woocommerce/cmsmasters-framework/theme-style/css/less/plugin-style.less',
'woocommerce/cmsmasters-framework/theme-style/css/plugin-adaptive.css': 'woocommerce/cmsmasters-framework/theme-style/css/less/plugin-adaptive.less'
}
}
},
watch: {
configFiles: {
files: ['gruntfile.js'],
options: {
reload: true
}
},
less: {
files: ['**/*.less'],
tasks: ['less']
},
livereload: {
files: ['**/*.css', '**/*.php'],
options: {
livereload: true
}
}
},
jshint: {
files: ['js/jquery.script.js'],
options: {
"curly": true,
"eqnull": true,
"eqeqeq": true,
"undef": true,
"globals": {
"jQuery": true,
"document": true,
"window": true,
"screen": true,
"history": true,
"navigator": true,
"cmsms_script": true
}
}
}
});
// Load the plugin that provides the "less" task
grunt.loadNpmTasks('grunt-contrib-less');
// Load the plugin that provides the "watch" task
grunt.loadNpmTasks('grunt-contrib-watch');
// Load the plugin that provides the "jshint" task
grunt.loadNpmTasks('grunt-contrib-jshint');
// Default task(s).
grunt.registerTask('default', ['watch']);
};
Answer the question
In order to leave comments, you need to log in
How about looking at the docks and for a start at least enable them? :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question