我想在react-scripts我不想从 cra 弹出我想继续使用它而不弹出的情况下添加以下 babel 配置。我看到有一种方法可以分叉 repo 并添加您的自定义配置。但我想知道我可以在哪里粘贴这个。
// .babelrc or babel-loader option
{
"plugins": [
["import", { "libraryName": "antd", "libraryDirectory": "es", "style": "css" }] // `style: true` for less
]
}
Run Code Online (Sandbox Code Playgroud) I am generating a build from webpack. But whenever it generates a build it creates an index.html file along with other files but in the index.html it adds script tags with the suffix "/". I want to add a configuration in webpack to just add the name of the files of different assets instead of the suffix "/"
My index.html:
<head>
<meta charSet="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="generator" content="Gatsby 2.1.19" />
<link …Run Code Online (Sandbox Code Playgroud)