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.
47 lines
997 B
47 lines
997 B
4 years ago
|
const nodeExternals = require('webpack-node-externals');
|
||
|
const webpack = require('webpack')
|
||
|
const TerserPlugin = require('terser-webpack-plugin');
|
||
|
|
||
|
module.exports = {
|
||
2 years ago
|
entry: './src/run/dockerEntry.ts',
|
||
4 years ago
|
module: {
|
||
|
rules: [
|
||
2 years ago
|
{
|
||
|
test: /\.tsx?$/,
|
||
|
exclude: /node_modules/,
|
||
|
use: {
|
||
|
loader: 'ts-loader',
|
||
|
options: {
|
||
|
transpileOnly: true,
|
||
|
},
|
||
|
},
|
||
|
},
|
||
4 years ago
|
],
|
||
|
},
|
||
|
resolve: {
|
||
2 years ago
|
extensions: ['.tsx', '.ts', '.js', '.json'],
|
||
4 years ago
|
},
|
||
|
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,
|
||
|
},
|
||
|
};
|