-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.custom.config.js
43 lines (41 loc) · 991 Bytes
/
webpack.custom.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
const path = require('path');
const nrwlConfig = require('@nrwl/react/plugins/webpack.js');
module.exports = (config) => {
nrwlConfig(config);
return {
...config,
module: {
...config.module,
rules: [
...config.module.rules,
{
test: /\.(glsl|vs|fs)$/,
loader: 'ts-shader-loader',
},
],
},
resolve: {
...config.resolve,
alias: {
...config.resolve.alias,
theme: path.join(__dirname, 'libs/shared/theme/index.scss'),
'theme:variables': path.join(
__dirname,
'libs/shared/theme/src/lib/variables/index.scss'
),
'theme:mixins': path.join(
__dirname,
'libs/shared/theme/src/lib/mixins/index.scss'
),
'theme:defaultStyles': path.join(
__dirname,
'libs/shared/theme/src/lib/styles/index.scss'
),
},
},
node: {
fs: 'empty',
...config.node,
},
};
};