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
33 lines
732 B
JavaScript
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
|