A
A
Alexander2017-07-31 10:17:51
css
Alexander, 2017-07-31 10:17:51

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

2 answer(s)
V
ValeraValera, 2017-07-31
@cluberr

Gulp for the little ones - a detailed guide

K
Konstantin Kitmanov, 2017-07-31
@k12th

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 question

Ask a Question

731 491 924 answers to any question