【发布时间】:2019-10-05 19:34:28
【问题描述】:
有没有办法在 create-react-app 构建 js 文件名中不使用波浪号?
在我的 create-react-app 上运行 npm run build 后,我在 /static/js/ 文件夹中获得了几个 runtime~main.[hash].js 文件。我的目标文件系统不允许文件或文件夹名称中包含波浪号字符。
我可以在某处更改配置以使用- 而不是波浪号输出runtime-main.[hash].js??
https://facebook.github.io/create-react-app/docs/production-build
【问题讨论】:
-
我在
\node_modules\react-scripts\config\webpack.config.js中找到了new InlineChunkHtmlPlugin(HtmlWebpackPlugin, [/runtime~.+[.]js/])- 我相信这是生成名称的地方。我可以改变这个吗?我认为我需要先弹出?
标签: reactjs sharepoint create-react-app