2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00
Files
vue-select/build/webpack.prod.conf.js
T
Jeff Sagal 005f941834 - create transpiled umd module
- breaking changes for requireJS
	- /umd/vue-select moved to /dist/vue-select
2016-07-04 13:00:35 -07:00

33 lines
732 B
JavaScript

const webpack = require('webpack')
const base = require('./webpack.base.conf')
const config = require('../config')
base.entry = {
lib: './src/index.js'
}
base.output = {
path: config.build.assetsRoot,
publicPath: config.build.assetsPublicPath,
filename: 'vue-select.js',
library: 'VueSelect',
libraryTarget: 'umd'
}
var webpackConfig = Object.assign({}, base)
webpackConfig.devtool = '#source-map'
webpackConfig.plugins = (webpackConfig.plugins || []).concat([
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
}
}),
new webpack.optimize.UglifyJsPlugin({
compress: { warnings: false }
}),
new webpack.optimize.OccurenceOrderPlugin(),
])
module.exports = webpackConfig