2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-06-23 22:50:34 +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 path = require('path');
var webpack = require('webpack'); var webpack = require('webpack');
module.exports = { module.exports = {
entry: ['./src/Main.js'], entry: ['./src/Main.js'],
output: { output: {
path: path.resolve(__dirname, './dist'), path: path.resolve(__dirname, './dist'),
filename: 'build.js', filename: 'build.js',
library: ['VueSocketio'], library: ['VueNativeSock'],
libraryTarget: 'umd' libraryTarget: 'umd'
}, },
devtool: "source-map", devtool: "source-map",
plugins: [ plugins: [
new webpack.optimize.UglifyJsPlugin({ new webpack.optimize.UglifyJsPlugin({
compress: { compress: {
warnings: false warnings: false
} }
}) })
], ],
module: { module: {
loaders: [ loaders: [
{ {
test: /\.js$/, test: /\.js$/,
exclude: /node_modules/, exclude: /node_modules/,
loader: 'babel-loader', loader: 'babel-loader',
query: { query: {
presets: ['es2015'] presets: ['es2015']
} }
} }
] ]
} }
} }
+3022
View File
File diff suppressed because it is too large Load Diff