mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-05-17 06:59:39 +03:00
b62cc5a27c
* wire up specs * tests + fixes for #1 * travis
38 lines
677 B
JavaScript
Executable File
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']
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|