Browse Source

chore(nocodb): format webpack.config.js

pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
0ef435c017
  1. 16
      packages/nocodb/docker/webpack.config.js

16
packages/nocodb/docker/webpack.config.js

@ -1,5 +1,5 @@
const nodeExternals = require('webpack-node-externals');
const webpack = require('webpack')
const webpack = require('webpack');
const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
@ -22,23 +22,19 @@ module.exports = {
extensions: ['.tsx', '.ts', '.js', '.json'],
},
output: {
path: require('path').resolve("./docker"),
filename: "main.js",
path: require('path').resolve('./docker'),
filename: 'main.js',
library: 'libs',
libraryTarget: 'umd',
globalObject: "typeof self !== 'undefined' ? self : this"
globalObject: "typeof self !== 'undefined' ? self : this",
},
optimization: {
minimize: true, //Update this to true or false
minimizer: [new TerserPlugin()],
nodeEnv:false
nodeEnv: false,
},
externals: [nodeExternals()],
plugins: [
new webpack.EnvironmentPlugin([
'EE'
]),
],
plugins: [new webpack.EnvironmentPlugin(['EE'])],
target: 'node',
node: {
__dirname: false,

Loading…
Cancel
Save