2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-05-27 00:14:06 +03:00
Files
vue-native-websocket/webpack.config.js
T
2017-05-16 22:58:40 -07:00

32 lines
596 B
JavaScript
Executable File

var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: ['./src/Main.js'],
output: {
path: path.resolve(__dirname, './dist'),
filename: 'build.js',
library: ['VueNativeSock'],
libraryTarget: 'umd'
},
devtool: "source-map",
plugins: [
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
})
],
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['es2015']
}
}
]
}
}