SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. process.env.NODE_ENV = process.env.NODE_ENV || 'staging'
  2.  
  3. const environment = require('./environment')
  4.  
  5. const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
  6. config = environment.toWebpackConfig()
  7. config['plugins'].forEach(element => {
  8.   if(element.constructor.name == 'UglifyJsPlugin'){
  9.     element['options']['sourceMap'] = false
  10.   }
  11. })
  12. console.log(config.plugins)
  13. module.exports = config
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top