You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Vue-Socket.io/webpack.config.js

28 lines
783 B
JavaScript

module.exports = {
mode: process.env.NODE_ENV,
entry: ["./src/index.js"],
output: {
library: "VueSocketIO",
libraryTarget: "umd",
libraryExport: "default",
filename: "vue-socketio.js",
globalObject: "typeof self !== 'undefined' ? self : this"
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: "babel-loader",
options: {
plugins: [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-classes"
]
}
}
}
]
}
};