summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/webpack.main.js15
-rw-r--r--build/webpack.renderer.js26
2 files changed, 41 insertions, 0 deletions
diff --git a/build/webpack.main.js b/build/webpack.main.js
new file mode 100644
index 0000000..7d3064b
--- /dev/null
+++ b/build/webpack.main.js
@@ -0,0 +1,15 @@
+module.exports = {
+ entry: './src/main/index.ts',
+ module: {
+ rules: [
+ {
+ test: /\.ts$/,
+ use: 'ts-loader',
+ exclude: /node_modules/,
+ },
+ ],
+ },
+ resolve: {
+ extensions: ['.ts', '.js'],
+ },
+};
diff --git a/build/webpack.renderer.js b/build/webpack.renderer.js
new file mode 100644
index 0000000..2cfd371
--- /dev/null
+++ b/build/webpack.renderer.js
@@ -0,0 +1,26 @@
+/* eslint-disable @typescript-eslint/no-var-requires */
+const CopyPlugin = require('copy-webpack-plugin');
+
+module.exports = {
+ module: {
+ rules: [
+ {
+ test: /\.tsx?$/,
+ use: 'ts-loader',
+ exclude: /node_modules/,
+ },
+ {
+ test: /\.css$/,
+ use: [{ loader: 'style-loader' }, { loader: 'css-loader' }],
+ },
+ {
+ test: /\.(vs|fs)$/,
+ use: 'raw-loader',
+ },
+ ],
+ },
+ plugins: [new CopyPlugin([{ from: 'static' }])],
+ resolve: {
+ extensions: ['.ts', '.js', '.tsx', '.jsx'],
+ },
+};