Prepare for editor implementation
- Add React and Material UI - Add React Developer Tools - Add ESlint plugin and config
This commit is contained in:
parent
7dce448d9b
commit
6c8f2d780a
11 changed files with 524 additions and 130 deletions
15
build/webpack.main.js
Normal file
15
build/webpack.main.js
Normal file
|
@ -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'],
|
||||
},
|
||||
};
|
26
build/webpack.renderer.js
Normal file
26
build/webpack.renderer.js
Normal file
|
@ -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'],
|
||||
},
|
||||
};
|
Reference in a new issue