Skip to content

Commit

Permalink
Improved webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
libern committed Aug 17, 2018
1 parent 13759e5 commit c373570
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ let mix = require('laravel-mix');
|
*/

if (mix.inProduction()) {
mix.options({
uglify: {
uglifyOptions: {
sourceMap: true,
compress: {
warnings: false,
drop_console: true
}
}
}
});
}

mix.options({processCssUrls: false});

// enable source maps
Expand Down Expand Up @@ -99,6 +113,10 @@ mix.version([
'public/assets/js/app.theme.js',
]);

if (mix.inProduction()) {
mix.version();
}

// BrowserSync
mix.browserSync({
proxy: 'someline-starter.sl',
Expand Down

0 comments on commit c373570

Please sign in to comment.