forked from stream-labs/desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.config.js
49 lines (44 loc) · 1.27 KB
/
dev.config.js
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
const merge = require('webpack-merge');
const baseConfig = require('./base.config.js');
const path = require('path');
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
const { CheckerPlugin } = require('awesome-typescript-loader')
const plugins = [new HardSourceWebpackPlugin(), new CheckerPlugin()];
module.exports = merge.smart(baseConfig, {
entry: {
renderer: './app/app.ts',
updater: './updater/ui.js',
'guest-api': './guest-api',
},
mode: 'development',
devtool: 'source-map',
watchOptions: { ignored: /node_modules/ },
module: {
rules: [
{
test: /\.ts$/,
loader: 'awesome-typescript-loader',
options: { useCache: true, forceIsolatedModules: true, reportedFiles: ['app/**/*.ts'] },
exclude: /node_modules|vue\/src/
},
{
test: /\.tsx$/,
include: path.resolve(__dirname, 'app/components'),
loader: [
'babel-loader',
{
loader: 'awesome-typescript-loader',
options: { forceIsolatedModules: true, reportedFiles: ['app/components/**/*.tsx'] }
}
],
exclude: /node_modules/,
},
{
test: /\.tsx?$/,
enforce: 'pre',
loader: 'tslint-loader',
},
]
},
plugins,
});