forked from sandiz/rs-designer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-overrides.js
44 lines (43 loc) · 1.13 KB
/
config-overrides.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
const { override, useBabelRc, useEslintRc, addWebpackModuleRule, addWebpackPlugin } = require('customize-cra');
const path = require('path');
const { IgnorePlugin } = require("webpack");
const wasmExtensionRegExp = /\.wasm$/;
function myOverrides(config) {
return config;
}
module.exports = override(
config => ({
...config,
output: {
...config.output,
globalObject: 'this'
},
}),
//myOverrides,
useBabelRc(),
useEslintRc(path.resolve(__dirname, '.eslintrc')),
addWebpackModuleRule(
{
test: /worklet\.js$/,
use: [
{
loader: require.resolve('worklet-loader'),
options: {
name: 'static/js/[hash].worklet.js'
}
}
],
},
{
test: /\.wav$/,
use: [
{
loader: require.resolve('file-loader'),
options: {
name: '[path][name].[ext]'
}
}
],
},
)
);