Laravel Elixir Does not remove CSS comments with --production flag

Posted 3 years ago by ralphmrivera


I am using Elixir to combine a bunch of CSS and LESS files. While the resulting file is minified, many of the comments remain. I'm using the --production flag, but wasn't sure if I should be doing anything else to strip out the comments.

Any assistance would be appreciated.

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.