Answer the question
In order to leave comments, you need to log in
How to properly deploy css Grunt with concatenation and minification?
Hello everybody.
I am using Grunt.
The problem is this:
Now I have several css files (main and several plugins)..
First I concatenate them into one, after which I apply cssmin, getting 1 file as an output.
The problem arises during debugging - the browser shows the line numbers from the concatenated file, and I want to make edits in the source ..
Please tell me how to properly deploy? (so that the output is 1 minified and concatenated file, and so that it can be debugged).
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
In cssmin, you need to enable this option: https://github.com/gruntjs/grunt-contrib-cssmin#so...
And in grunt-contrib-concat, respectively, this one: https://github.com/gruntjs/grunt-contrib -concat#so...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question