Asked thg 8 29, 2021 1:45 SA• 229 0 1
  • 229 0 1
+1

cách import antd css trong reactjs

Share
  • 229 0 1

khi dùng css của antd sao ko import theo syntax import "node_modules/antd/dist/antd.css" mà lại import theo cách này import "antd/dist/antd.css" thế mọi người.

1 ANSWERS


Answered thg 8 29, 2021 5:42 SA
Accepted
0

đọc về resolve của webpack

resolve: {
    // options for resolving module requests
    // (does not apply to resolving of loaders)
    modules: ["node_modules",path.resolve(__dirname, "app")],
   ...
}
Share
Avatar tapcode @tapcode
•
thg 8 29, 2021 8:11 SA

thanks bn nhé

0
| Reply
Share
Viblo
Let's register a Viblo Account to get more interesting posts.