Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Mizu
Commits
0881dad1
Unverified
Commit
0881dad1
authored
3 years ago
by
AmitUp9
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
update craco config to resolve material ui instances (#1060)
parent
cade960b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui/craco.config.js
+1
-1
ui/craco.config.js
with
1 addition
and
1 deletion
+1
-1
ui/craco.config.js
+
1
-
1
View file @
0881dad1
...
...
@@ -13,7 +13,7 @@ module.exports = {
instanceOfMiniCssExtractPlugin
.
options
.
ignoreOrder
=
true
;
webpackConfig
.
resolve
.
alias
[
'
react
'
]
=
path
.
resolve
(
__dirname
,
'
node_modules/react
'
);
// solve 2 react instances
webpackConfig
.
resolve
.
alias
[
'
@material-ui/styles
'
]
=
path
.
resolve
(
"
node_modules
"
,
"
@material-ui/styles
"
);
return
webpackConfig
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment