forked from unknownskl/greenlight
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.plugins.js
More file actions
33 lines (31 loc) · 1.03 KB
/
webpack.plugins.js
File metadata and controls
33 lines (31 loc) · 1.03 KB
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
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');
const path = require('path');
module.exports = [
new ForkTsCheckerWebpackPlugin(),
new CopyPlugin({
patterns: [
{
from: path.join(__dirname, 'src/assets'),
to: 'assets/',
},{
from: path.join(__dirname, 'src/assets'),
to: 'main_window/assets/',
},
{
from: path.join(__dirname, 'node_modules/xbox-xcloud-player/src/Opus'),
to: 'opus/',
},{
from: path.join(__dirname, 'node_modules/xbox-xcloud-player/src/Opus'),
to: 'main_window/opus/',
},
{
from: path.join(__dirname, 'node_modules/xbox-xcloud-player/src/Worker/Opus.js'),
to: 'dist/opusWorker.min.js',
},{
from: path.join(__dirname, 'node_modules/xbox-xcloud-player/src/Worker/Opus.js'),
to: 'main_window/dist/opusWorker.min.js',
},
],
}),
];