2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-05-17 06:49:38 +03:00
Files
vue-native-websocket/webpack.config.js
T
Nathan b62cc5a27c Specs (#6)
* wire up specs

* tests + fixes for #1

* travis
2017-07-07 09:27:32 -07:00

38 lines
677 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
}
})
],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
}
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['es2015']
}
}
]
}
}