Created
November 16, 2018 05:53
-
-
Save mityukov/a310111f7492a15876bbde1ad551d030 to your computer and use it in GitHub Desktop.
Laravel Mix: strip console.log from production build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mix = require('laravel-mix'); | |
if (mix.inProduction()) { | |
mix.options({ | |
uglify: { | |
uglifyOptions: { | |
compress: { | |
drop_console: true | |
} | |
} | |
} | |
}); | |
} | |
// .. your mix code follows |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment