l1f7 / surface

:construction: Building blocks & guidelines for front-end at Lift (deprecated: unmaintained)
2 stars 1 forks source link

Update UglifyJS config to drop console statements... #13

Closed hyshka closed 7 years ago

hyshka commented 7 years ago
webpackConfig.plugins.push(new webpack.optimize.UglifyJsPlugin({
  beautify: false,
  mangle: {
    screw_ie8: true,
  },
  compress: {
    screw_ie8: true,
    warnings: false,
    drop_console: true,
  },
  comments: false,
}));

Then we can leave console.log's in for dev and debugging purposes.

Dropping keen_fnames also saves a bunch of bytes. Worth removing IMO.

hyshka commented 7 years ago

This has been done already.