-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcraco.config.js
35 lines (34 loc) · 1000 Bytes
/
craco.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
// const path = require('path');
module.exports = {
babel: {
plugins: [
"glsl",
],
},
webpack: {
configure: (webpackConfig, { env, paths }) => {
webpackConfig.resolve = {
...webpackConfig.resolve,
alias: {
'txml/txml': 'txml/dist/txml',
...webpackConfig.resolve.alias,
},
};
/*
webpackConfig.module.rules[2].oneOf[1].options.plugins = [
[
path.join(paths.appNodeModules, 'babel-plugin-named-asset-import'),
{
loaderMap: {
svg: {
ReactComponent: '@svgr/webpack?-svgo,+titleProp,+ref![path]',
},
},
},
],
];
*/
return webpackConfig;
},
},
};