2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-06-11 05:42:28 +03:00

webpack, yarn and dist

This commit is contained in:
nathan
2017-05-16 22:58:40 -07:00
parent ace980d539
commit db15356be6
3 changed files with 3051 additions and 29 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+28 -28
View File
@@ -1,31 +1,31 @@
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']
}
}
]
}
}
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']
}
}
]
}
}
+3022
View File
File diff suppressed because it is too large Load Diff