summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2020-03-17 18:43:22 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2020-03-17 18:43:22 +0100
commit6c8f2d780acd6c41d42de6b5fc8d84e765334b64 (patch)
tree5f157118407a571d6a2bf6d2563d2317b44fb186 /build
parent7dce448d9bd20fd72849dab94cef3bae253c7867 (diff)
downloadrpgedit-6c8f2d780acd6c41d42de6b5fc8d84e765334b64.tar
rpgedit-6c8f2d780acd6c41d42de6b5fc8d84e765334b64.zip
Prepare for editor implementation
- Add React and Material UI - Add React Developer Tools - Add ESlint plugin and config
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'],
+ },
+};