1
0
mirror of synced 2024-11-22 21:36:04 +03:00
vue-formulario/webpack.config.js

41 lines
794 B
JavaScript
Raw Normal View History

2018-01-31 01:21:21 +03:00
const webpack = require('webpack')
const path = require('path')
module.exports = {
entry: path.resolve(`${__dirname}/src/formulate.js`),
output: {
path: path.resolve(`${__dirname}/dist/`),
filename: 'index.js',
libraryTarget: 'umd',
library: 'vue-formulate',
umdNamedDefine: true
},
resolve: {
extensions: ['.js', '.vue']
},
module: {
loaders: [
{
test: /\.vue$/,
loader: 'vue-loader',
options: {}
},
{
test: /\.js$/,
loader: 'babel-loader',
include: [path.resolve(__dirname, 'src')]
}
]
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
minimize: true,
sourceMap: false,
mangle: true,
compress: {
warnings: false
}
})
]
}