How to configure grunt file to generate source maps with LESS ?

  • Hi, i want to configure grunt file to generate source maps compatible with FireFox Developer Tools.
    Tried add this to grunt.js:

    	watch: {
    		options: {
    				strictImports : true,
    				sourceMap: true,
    			        sourceMapFilename: 'public/',
    				sourceMapURL: ''
    		lessUpdated_Client: {
    			files: [
    				'node_modules/nodebb-*/*.less', 'node_modules/nodebb-*/**/*.less',

  • GNU/Linux

    Grunt is not compiling the less files of NodeBB. It just watches changes and notifies (or restarts) NodeBB. NodeBB itself manages the compilation of LESS files.
    I assume this would be the place to add such options.

  • Admin

    If you're interested in tackling this issue, note that the UglifyJS version we use may not produce working source maps.

    The source map also has to be able to access libraries from node_modules/, so that's another complication.

Log in to reply

Looks like your connection to NodeBB was lost, please wait while we try to reconnect.