dbgate/plugins/dbgate-plugin-mssql/webpack-frontend.config.js
Jan Prochazka 968e69c7f2
Some checks are pending
Run tests / test-runner (push) Waiting to run
DBGATE_TOOLS => DBGATE_PACKAGES
2024-08-20 12:18:55 +02:00

30 lines
512 B
JavaScript

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',
},
plugins: [
new webpack.DefinePlugin({
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
}),
],
// optimization: {
// minimize: false,
// },
};
module.exports = config;