Timers and other features for Heroes of the Storm
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 

38 Zeilen
983 B

  1. 'use strict'
  2. require('./check-versions')()
  3. process.env.NODE_ENV = 'production'
  4. const ora = require('ora')
  5. const rm = require('rimraf')
  6. const path = require('path')
  7. const chalk = require('chalk')
  8. const webpack = require('webpack')
  9. const config = require('../config')
  10. const webpackConfig = require('./webpack.prod.conf')
  11. const spinner = ora('building for production...')
  12. spinner.start()
  13. rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
  14. if (err) throw err
  15. webpack(webpackConfig, function (err, stats) {
  16. spinner.stop()
  17. if (err) throw err
  18. process.stdout.write(stats.toString({
  19. colors: true,
  20. modules: false,
  21. children: false,
  22. chunks: false,
  23. chunkModules: false
  24. }) + '\n\n')
  25. console.log(chalk.cyan(' Build complete.\n'))
  26. console.log(chalk.yellow(
  27. ' Tip: built files are meant to be served over an HTTP server.\n' +
  28. ' Opening index.html over file:// won\'t work.\n'
  29. ))
  30. })
  31. })