-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathwebpack.prod.js
More file actions
53 lines (51 loc) · 1.03 KB
/
Copy pathwebpack.prod.js
File metadata and controls
53 lines (51 loc) · 1.03 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
const path = require("path");
const { merge } = require("webpack-merge");
const common = require("./webpack.common.js");
const TerserPlugin = require("terser-webpack-plugin");
module.exports = merge(common, {
mode: "production",
optimization: {
'minimize': true,
minimizer: [new TerserPlugin({
terserOptions: {
compress: {
pure_funcs: [
'console.info',
'console.debug',
'console.warn',
"F2",
"F3",
"F4",
"F5",
"F6",
"F7",
"F8",
"F9",
"A2",
"A3",
"A4",
"A5",
"A6",
"A7",
"A8",
"A9"
]
}
}
})],
},
module: {
rules: [
{
test: [/\.elm$/],
exclude: [/elm-stuff/, /node_modules/],
use: [
{
loader: "elm-webpack-loader",
options: {}
}
]
},
]
},
});