chushihua
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user