1
0
mirror of synced 2024-11-28 16:16:09 +03:00
vue-formulario/webpack.config.js
2018-01-30 17:21:21 -05:00

41 lines
794 B
JavaScript

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
}
})
]
}