2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-22 10:30:34 +03:00

fine tune build, add bower.json

This commit is contained in:
Jeff Sagal
2016-06-10 11:24:05 -07:00
7 changed files with 100 additions and 0 deletions
+19
View File
@@ -7,6 +7,7 @@ var config = require('../config')
var ora = require('ora')
var webpack = require('webpack')
var webpackConfig = require('./webpack.prod.conf')
var umdConfig = require('./webpack.umd.conf')
console.log(
' Tip:\n' +
@@ -22,6 +23,9 @@ rm('-rf', assetsPath)
mkdir('-p', assetsPath)
cp('-R', 'static/', assetsPath)
/**
* Build the /dist/ folder (demo site)
*/
webpack(webpackConfig, function (err, stats) {
spinner.stop()
if (err) throw err
@@ -33,3 +37,18 @@ webpack(webpackConfig, function (err, stats) {
chunkModules: false
}) + '\n')
})
/**
* Build the UMD module @ /umd/vue-select.js.
*/
webpack(umdConfig, 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')
})