mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
30 lines
506 B
JavaScript
30 lines
506 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_TOOLS': 'window.DBGATE_TOOLS',
|
|
}),
|
|
],
|
|
|
|
// optimization: {
|
|
// minimize: false,
|
|
// },
|
|
};
|
|
|
|
module.exports = config;
|