2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-05-17 03:09:37 +03:00
Files
Viktor Shcheglov dd31ce2793 New version 2.1.0
2022-07-25 14:17:02 +03:00

39 lines
784 B
JavaScript
Executable File

var path = require('path')
const TerserPlugin = require('terser-webpack-plugin')
module.exports = {
entry: ['./src/Main.js'],
mode: 'production',
output: {
path: path.resolve(__dirname, './dist'),
filename: 'build.js',
library: ['VueNativeSock'],
libraryTarget: 'umd'
},
devtool: 'source-map',
optimization: {
minimize: true,
minimizer: [new TerserPlugin()]
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
}
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env'],
plugins: ['@babel/plugin-transform-runtime']
}
}
}
]
}
}