Does the HtmlRspackPlugin supports inline js and css? #11559
-
|
同问题,咨询下,不想使用三方包,看下内置的包含不包含 |
Beta Was this translation helpful? Give feedback.
Answered by
CPunisher
Sep 22, 2025
Replies: 2 comments 2 replies
-
|
The HtmlRspackPlugin does not have the capabilities to inline JS or CSS files. However, if you are using Rsbuild, it provides some options for this: |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
可以参考 rspack playground 的实现,也比较简单的,基于 service worker: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
CPunisher
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可以参考 rspack playground 的实现,也比较简单的,基于 service worker:
https://github.com/rspack-contrib/rspack-playground/blob/main/sw/service-worker.ts
https://github.com/rspack-contrib/rspack-playground/blob/main/src/components/Preview/index.tsx