// https://github.com/shelljs/shelljs
require('./check-versions')()
require('shelljs/global')
env.NODE_ENV = 'production'

var path = require('path')
var config = require('../config')
var ora = require('ora')
var webpack = require('webpack')
var webpackConfig = require('./webpack.prod.conf')

var spinner = ora('building for production...')
spinner.start()

webpack(webpackConfig, function (err, stats) {
  spinner.stop()
  if (err) throw err
  process.stdout.write(stats.toString({
    colors: true,
    modules: false,
    children: false,
    chunks: false,
    chunkModules: false
  }) + '\n')
})

@@ -352,16 +352,273 @@
 tart()%0A%0A
+var assetsPath = path.join(config.build.assetsRoot, config.build.assetsSubDirectory)%0A/* not needed as there will not be any special assets path but new folder for each build%0Arm('-rf', assetsPath)%0Amkdir('-p', assetsPath)%0Acp('-R', 'static/*', assetsPath)%0A*/%0A%0A
 webpack(

Revert "clean-up"