Skip to content

Commit 1a78424

Browse files
author
JelteMX
committed
Include banner
1 parent 83bb3f4 commit 1a78424

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "1.4.1",
55
"description": "Drop files in your Mendix Application",
66
"copyright": "Mendix 2020",
7-
"author": "Jelte Lagendijk",
7+
"author": "Jelte Lagendijk <[email protected]>",
88
"config": {
99
"widgetPath": "./dist/MxTestProject/widgets",
1010
"projectPath": "./dist/MxTestProject/",

webpack.config.prod.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const merge = require("webpack-merge");
22
const webpack = require("webpack");
33
const path = require("path");
44
const baseConfig = require("./node_modules/@mendix/pluggable-widgets-tools/configs/webpack.config.prod.js");//Can also be webpack.config.prod.js
5+
const pkg = require('./package.json');
56

67
const TerserPlugin = require("terser-webpack-plugin");
78
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
@@ -49,7 +50,10 @@ const terserPlugin = new TerserPlugin({
4950
mangle: true, // Note `mangle.properties` is `false` by default.
5051
module: false,
5152
output: {
52-
comments: false
53+
comments: false,
54+
beautify: false,
55+
preamble: `/* FileDropper for Mendix || Version ${pkg.version} || Apache 2 LICENSE || Developer: ${pkg.author} || Please report any issues here: https://github.com/mendixlabs/mendix-file-dropper/issues */\n`
56+
// comments: false
5357
},
5458
toplevel: false,
5559
nameCache: null,

0 commit comments

Comments
 (0)