Vue-Socket.io/webpack.config.js
metinseylan 8e0100be09 2.1.0
2016-12-31 01:18:10 +03:00

31 lines
No EOL
723 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: ['VueSocketio'],
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']
}
}
]
}
}