-
-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathwebpack.renderer.config.js
More file actions
37 lines (35 loc) · 919 Bytes
/
webpack.renderer.config.js
File metadata and controls
37 lines (35 loc) · 919 Bytes
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
/* eslint-disable @typescript-eslint/no-var-requires */
const rules = require("./webpack.rules");
const plugins = require("./webpack.plugins");
module.exports = {
module: {
rules: [
...rules,
{
test: /\.css$/,
use: [{ loader: "style-loader" }, { loader: "css-loader" }],
},
],
},
target: "electron-renderer",
externals: {
assert: "commonjs2 assert",
child_process: "commonjs2 child_process",
crypto: "commonjs2 crypto",
electron: "commonjs2 electron",
path: "commonjs2 path",
fs: "commonjs2 fs",
http: "commonjs2 http",
https: "commonjs2 https",
os: "commonjs2 os",
sqlite3: "commonjs sqlite3",
stream: "commonjs2 stream",
timers: "commonjs2 timers",
zlib: "commonjs2 zlib",
constants: "commonjs2 constants",
},
plugins,
resolve: {
extensions: [".js", ".ts", ".jsx", ".tsx", ".css", ".json"],
},
};