mirror of
https://github.com/tenrok/vue-select.git
synced 2026-05-17 02:29:37 +03:00
005f941834
- breaking changes for requireJS - /umd/vue-select moved to /dist/vue-select
31 lines
732 B
JavaScript
31 lines
732 B
JavaScript
// https://github.com/shelljs/shelljs
|
|
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 UMD module...')
|
|
spinner.start()
|
|
|
|
var assetsPath = path.join(config.build.assetsRoot, config.build.assetsSubDirectory)
|
|
rm('-rf', assetsPath)
|
|
mkdir('-p', assetsPath)
|
|
|
|
/**
|
|
* Build the /dist/ folder
|
|
*/
|
|
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')
|
|
}) |