Initial commit
This commit is contained in:
25
webpack.config.js
Normal file
25
webpack.config.js
Normal file
@@ -0,0 +1,25 @@
|
||||
const path = require("path");
|
||||
const webpack = require("webpack");
|
||||
const TerserPlugin = require("terser-webpack-plugin");
|
||||
|
||||
module.exports = {
|
||||
entry: "./index.js",
|
||||
output: {
|
||||
filename: "bundle.js",
|
||||
path: path.resolve(__dirname, "dist")
|
||||
},
|
||||
plugins: [
|
||||
new TerserPlugin({
|
||||
terserOptions: {
|
||||
keep_fnames: ['signIn', 'fetchProtected'],
|
||||
mangle: {
|
||||
reserved: [
|
||||
"signIn",
|
||||
"fetchProtected"
|
||||
]
|
||||
}
|
||||
}
|
||||
})
|
||||
],
|
||||
mode: "development"
|
||||
};
|
||||
Reference in New Issue
Block a user