-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.config.js
40 lines (39 loc) · 963 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
const path = require("path");
const webpack = require("webpack")
module.exports = {
mode: "production",
entry: {
main: "./src/erdiagram.ts",
},
output: {
path: path.resolve(__dirname, './js'),
filename: "erdiagram.min.js"
},
resolve: {
extensions: [".ts", ".tsx", ".js"],
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: "ts-loader"
}
]
},
plugins: [
new webpack.BannerPlugin({
raw: true,
banner: [
"/**",
" * Entity Relationship Diagram (in TypeScript)",
" * @author Levente Hunyadi",
" * @version 1.0",
" * @remarks Copyright (C) 2022-2024 Levente Hunyadi",
" * @remarks Licensed under MIT, see https://opensource.org/licenses/MIT",
" * @see https://github.com/hunyadi/entity-relationship-diagram/",
" **/"
].join("\n"),
stage: webpack.Compilation.PROCESS_ASSETS_STAGE_REPORT,
})
]
};