build.js 398 B

123456789101112131415
  1. // Do this as the first thing so that any code reading it knows the right env.
  2. process.env.BABEL_ENV = 'production';
  3. process.env.NODE_ENV = 'production';
  4. process.env.ASSET_PATH = '/';
  5. const webpack = require('webpack');
  6. const config = require('../webpack.config');
  7. delete config.chromeExtensionBoilerplate;
  8. config.mode = 'production';
  9. webpack(config, function (err) {
  10. if (err) throw err;
  11. });