27 lines
675 B
JavaScript
27 lines
675 B
JavaScript
|
require('./check-versions')()
|
||
|
|
||
|
process.env.NODE_ENV = 'development'
|
||
|
|
||
|
var rm = require('rimraf')
|
||
|
var path = require('path')
|
||
|
var chalk = require('chalk')
|
||
|
var webpack = require('webpack')
|
||
|
var config = require('../config')
|
||
|
var webpackConfig = require('./webpack.dev.conf')
|
||
|
|
||
|
rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
|
||
|
if (err) throw err
|
||
|
webpack(webpackConfig, function (err, stats) {
|
||
|
if (err) throw err
|
||
|
process.stdout.write(stats.toString({
|
||
|
colors: true,
|
||
|
modules: false,
|
||
|
children: false,
|
||
|
chunks: false,
|
||
|
chunkModules: false
|
||
|
}) + '\n\n')
|
||
|
|
||
|
console.log(chalk.cyan(' Build complete.\n'))
|
||
|
})
|
||
|
})
|