You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
chenjiahan
changed the title
我想请问一下如何配置类似HtmlWebpackExternalsPlugin注入某个包内文件的功能?
How to configure a function similar to HtmlWebpackExternalsPlugin to inject files into a package?
Oct 16, 2024
HtmlWebpackExternalsPlugin had been deprecated. You can see the code of this plugin, it is just a combination of externals, CopyWebpackPlugin and HtmlWebpackIncludeAssetsPlugin(named html-webpack-tags-plugin now).
这是我们项目原来的代码
我们需要这个插件在编译时自动排除某些库,然后把库文件用 script 的方式自动注入到 index.html 中,但是我直接把这段代码复制到
rsbuild.config.js
的tools.rspack#addPlugins( .. )
中并没有生效The text was updated successfully, but these errors were encountered: