add main.tsx

This commit is contained in:
zhandouxiaojiji committed 2020-10-09 19:11:37 +08:00
1 parent 09719f7788
commit ebbae1ae79
5 files changed
+931 -35

No files matched your search

+8 -2
View File
@@ -1,7 +1,11 @@
module.exports = {
entry: "./src/index.tsx",
mode: "development",
entry: {
"bundle": ["./src/index.tsx"],
"main": ["./main.tsx"]
},
output: {
filename: "bundle.js",
filename: "[name].js",
path: __dirname + "/dist"
},
@@ -21,4 +25,6 @@ module.exports = {
plugins: [
],
target: "electron-renderer"
};