Gulp command to output js and css in both normal and minify version
Hi,
Is there a way to compile the distribution JS and CSS containing both .js, .css together with their respective .min.js and .min.css file in single Gulp command?
Replies (1)
Hi You Meng,
Currently, the existing Gulp setup doesn’t support outputting both normal and minified files at the same time. However, you can build them separately:
- Run the command
gulp– this will build the normal assets. Copy to separate folder. - Then, use
gulp --prod– to build the minified assets.
Thanks!