dbgate/plugins/dbgate-plugin-sqlite/webpack-frontend.config.js

31 lines
548 B
JavaScript
Raw Normal View History

var webpack = require('webpack');
var path = require('path');
2021-04-25 16:49:53 +00:00
var config = {
context: __dirname + '/src/frontend',
2021-04-25 16:49:53 +00:00
entry: {
app: './index.js',
2021-04-25 16:49:53 +00:00
},
target: 'web',
2021-04-25 16:49:53 +00:00
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'frontend.js',
libraryTarget: 'var',
2021-04-25 16:49:53 +00:00
library: 'plugin',
},
plugins: [
new webpack.DefinePlugin({
'global.DBGATE_TOOLS': 'window.DBGATE_TOOLS',
}),
],
2021-04-25 16:49:53 +00:00
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;