summaryrefslogtreecommitdiffstats
path: root/build/webpack.renderer.js
blob: ab5693099d3eecc3b8489608678ce102b291ed1f (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
27
28
29
30
/* 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: /\.(woff|woff2|eot|ttf|otf)$/,
				use: 'file-loader',
			},
			{
				test: /\.(vs|fs)$/,
				use: 'raw-loader',
			},
		],
	},
	plugins: [new CopyPlugin([{ from: 'static' }])],
	resolve: {
		extensions: ['.ts', '.js', '.tsx', '.jsx'],
	},
};