2021-04-13 14:17:53 +00:00
|
|
|
var webpack = require("webpack");
|
|
|
|
var path = require("path");
|
|
|
|
|
|
|
|
var config = {
|
|
|
|
context: __dirname + "/src/frontend",
|
|
|
|
|
|
|
|
entry: {
|
|
|
|
app: "./index.js",
|
|
|
|
},
|
|
|
|
target: "web",
|
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, "dist"),
|
|
|
|
filename: "frontend.js",
|
|
|
|
libraryTarget: "var",
|
|
|
|
library: 'plugin',
|
|
|
|
},
|
|
|
|
|
2021-05-20 06:55:50 +00:00
|
|
|
plugins: [
|
|
|
|
new webpack.DefinePlugin({
|
2024-08-20 10:18:55 +00:00
|
|
|
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
|
2021-05-20 06:55:50 +00:00
|
|
|
}),
|
|
|
|
],
|
|
|
|
|
2021-04-13 14:17:53 +00:00
|
|
|
// uncomment for disable minimalization
|
|
|
|
// optimization: {
|
|
|
|
// minimize: false,
|
|
|
|
// },
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = config;
|