1 Star 0 Fork 2

章纪成/vue-ueditor-wrap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.js 930 Bytes
一键复制 编辑 原始数据 按行查看 历史
const path = require('path')
const ora = require('ora')
const rm = require('rimraf')
const chalk = require('chalk')
const webpack = require('webpack')
const webpackConfig = require('./webpack.prod.js')
const spinner = ora('building for production...')
spinner.start()
rm(path.resolve(__dirname, 'lib'), err => {
if (err) throw err
webpack(webpackConfig, (err, stats) => {
spinner.stop()
if (err) throw err
process.stdout.write(stats.toString({
colors: true,
modules: false,
chunks: false,
chunkModules: false
}) + '\n\n')
if (stats.hasErrors()) {
console.log(chalk.red(' Build failed with errors.\n'))
process.exit(1)
}
console.log(chalk.cyan('大功告成!👏 👏 👏\n'))
console.log(chalk.yellow(
'Tip: 提交 PR 之前不要忘记修改 package.json 里的版本号哦!方便我 Review 后麻溜溜的发布到 npm。\n'
))
})
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/13399607/vue-ueditor-wrap.git
[email protected]:13399607/vue-ueditor-wrap.git
13399607
vue-ueditor-wrap
vue-ueditor-wrap
master

搜索帮助