generated from MeilCli/action-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebpack.config.js
60 lines (59 loc) · 2.04 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
const path = require("path");
module.exports = {
mode: "production",
target: "node",
entry: {
main: "./src/main.ts",
"transformer-androidlint": "./src/transformer/androidlint.ts",
"transformer-checkstyle": "./src/transformer/checkstyle.ts",
"transformer-dotnetformat": "./src/transformer/dotnetformat.ts",
"transformer-eslint": "./src/transformer/eslint.ts",
"transformer-textlint": "./src/transformer/textlint.ts",
"transformer-markdownlint": "./src/transformer/markdownlint.ts",
"transformer-stylelint": "./src/transformer/stylelint.ts",
"transformer-rubocop": "./src/transformer/rubocop.ts",
"transformer-junit": "./src/transformer/junit.ts",
"operator-filter": "./src/operator/filter.ts",
"operator-filter-by-file-changed": "./src/operator/filter-by-file-changed.ts",
"operator-map": "./src/operator/map.ts",
"operator-distinct": "./src/operator/distinct.ts",
"operator-add": "./src/operator/add.ts",
"utils-export-context": "./src/utils/export-context.ts",
"utils-import-context": "./src/utils/import-context.ts",
"testing-create": "./src/testing/create.ts",
"testing-expect": "./src/testing/expect.ts",
},
output: {
path: path.resolve(__dirname, "dist"),
filename: "[name].js",
},
devtool: false,
optimization: {
minimize: false,
splitChunks: {
chunks: "all",
cacheGroups: {
vendor: {
test: /[\\/]node_modules[\\/]/,
name: "vendor",
},
graphql: {
test: /[\\/]graphql[\\/]/,
name: "graphql",
},
},
},
},
module: {
rules: [
{
test: /\.ts$/,
use: "ts-loader",
},
],
},
resolve: {
extensions: [".ts", ".js"],
modules: [path.resolve(__dirname, "src"), "node_modules"],
},
};