mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
884 B
39 lines
884 B
4 years ago
|
const nodeExternals = require('webpack-node-externals');
|
||
|
// const CopyPlugin = require('copy-webpack-plugin');
|
||
|
const webpack = require('webpack')
|
||
|
const TerserPlugin = require('terser-webpack-plugin');
|
||
3 years ago
|
// const JavaScriptObfuscator = require('webpack-obfuscator');
|
||
4 years ago
|
|
||
|
module.exports = {
|
||
|
entry: './docker/index.js',
|
||
|
module: {
|
||
|
rules: [
|
||
|
],
|
||
|
},
|
||
|
resolve: {
|
||
|
extensions: ['.js'],
|
||
|
},
|
||
|
output: {
|
||
|
path: require('path').resolve("./docker"),
|
||
|
filename: "main.js",
|
||
|
library: 'libs',
|
||
|
libraryTarget: 'umd',
|
||
|
globalObject: "typeof self !== 'undefined' ? self : this"
|
||
|
},
|
||
|
optimization: {
|
||
3 years ago
|
minimize: true, //Update this to true or false
|
||
|
minimizer: [new TerserPlugin()],
|
||
4 years ago
|
nodeEnv:false
|
||
|
},
|
||
|
externals: [nodeExternals()],
|
||
|
plugins: [
|
||
|
new webpack.EnvironmentPlugin([
|
||
|
'EE'
|
||
|
]),
|
||
|
],
|
||
|
target: 'node',
|
||
2 years ago
|
node: {
|
||
|
__dirname: false,
|
||
|
},
|
||
|
};
|