no message
Former-commit-id: 2f0e89f79c810259b35a41ccc7154b3175f720ff Former-commit-id: a4cd4ece7a84af6ac9f8119c7477a8ff791c8c19 Former-commit-id: 1fc16ba9b768d02046972a7da5c4ff3b4ae74a43
This commit is contained in:
@@ -1,16 +1,26 @@
|
||||
'use strict'
|
||||
// 检查依赖版本
|
||||
require('./check-versions')()
|
||||
|
||||
// 设置 NODE_ENV
|
||||
process.env.NODE_ENV = 'production'
|
||||
|
||||
// loading模块 https://www.npmjs.com/package/ora
|
||||
const ora = require('ora')
|
||||
// 删除模块 https://www.npmjs.com/package/rimraf
|
||||
const rm = require('rimraf')
|
||||
// path
|
||||
const path = require('path')
|
||||
// 输出彩色的文字 https://www.npmjs.com/package/chalk
|
||||
const chalk = require('chalk')
|
||||
// webpack
|
||||
const webpack = require('webpack')
|
||||
// 设置 这个文件里只用到了 config.build
|
||||
const config = require('../config')
|
||||
// webpack 生产环境的核心配置文件
|
||||
const webpackConfig = require('./webpack.prod.conf')
|
||||
|
||||
// 定义一个 loading
|
||||
const spinner = ora('building for production...')
|
||||
spinner.start()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user