2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-05-26 00:34:06 +03:00
Files
vue2-datepicker/webpack.deploy.config.js
2018-02-10 18:48:27 +08:00

35 lines
769 B
JavaScript

const path = require('path')
const merge = require('webpack-merge')
const baseWebpackConfig = require('./webpack.config.js')
const webpack = require('webpack')
const webpackConfig = merge(baseWebpackConfig, {
entry: './index.js',
output: {
path: path.resolve(__dirname, './dist'),
publicPath: '/dist/',
filename: 'build.js',
library: "DatePicker",
libraryTarget: "umd"
},
devtool: 'source-map',
plugins: [
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
}
}),
new webpack.optimize.UglifyJsPlugin({
sourceMap: false,
compress: {
warnings: false
}
}),
new webpack.LoaderOptionsPlugin({
minimize: true
})
]
})
module.exports = webpackConfig