summaryrefslogtreecommitdiffstats
path: root/webpack.renderer.js
blob: 2cfd37173b58b5ef3433ca3a0a2441640ff881bd (plain)
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
/* 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'],
	},
};