kossa's avatar
Level 20

Elixir : Delete all comments in Js and CSS files

Hi,

How can I delete all comments in my css and js file and use maximum minification, I tried gulp --production but comment still in files.

Thanks

0 likes
6 replies
EmilMoe's avatar

You are sure it's not the copyright comments that persists. These should not be removed as it makes your product infringing.

kossa's avatar
Level 20

What I need is to minify the css, there is a lot of nodeJS tool do that, So I'm asking the way to do with Elixir.

devsrv's avatar

@wowrudy Laravel 5.5 uses Mix so you don't need to do anything, webpack does all these staffs for you. you need to use npm run production

MladenJanjetovic's avatar

@WOWRUDY - If you are still using Elixir in 5.5 just add it at the top of gulpfile.js, right under the var elixir declaration

Please or to participate in this conversation.