no message

Former-commit-id: 2f0e89f79c810259b35a41ccc7154b3175f720ff
Former-commit-id: a4cd4ece7a84af6ac9f8119c7477a8ff791c8c19
Former-commit-id: 1fc16ba9b768d02046972a7da5c4ff3b4ae74a43
This commit is contained in:
李杨
2018-04-05 09:25:30 +08:00
parent 3a2fff8745
commit 739cbdbd77
3 changed files with 39 additions and 0 deletions

View File

@@ -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()

View File

@@ -0,0 +1,12 @@
<template>
<Container type="card-full">
<template slot="header">
多环境发布 测试
</template>
<el-row>
<el-col :span="8">8</el-col>
<el-col :span="8">8</el-col>
<el-col :span="8">8</el-col>
</el-row>
</Container>
</template>

View File

@@ -218,6 +218,23 @@ export const menu = {
component: resolve => { require(['@/pages/demo/plugins/timeago/demo.vue'], resolve) }
}
]
},
// 多环境发布
{
title: '多环境发布',
icon: 'paper-plane',
children: [
{
title: '检验环境',
icon: 'file-o',
path: 'build',
name: 'demo-plugins-build',
meta: {
requiresAuth: true
},
component: resolve => { require(['@/pages/demo/plugins/build/index.vue'], resolve) }
}
]
}
]
}