Some issues
#135
Replies: 1 comment 14 replies
-
|
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
I decided to share the results of some experiments.
I used the code base (CodeSpace / repo -
issues
branch) andbuild:edge
script to compileprojects\bootstrap
.I added to
projects/bootstrap/webpack.edge.mjs
some lines:I try to get a preload tag for the script in
projects/bootstrap/src/views/home.html
But after compilation there is no preload tag.
If we turn off some options in
@swc/html
minimizer configuration (projects/bootstrap/configs/swcHtml.config.mjs
), there'll be a preload tag after all.I guess that the reason for this behavior is an error in parsing of minified code. I have already encountered behavior with unpredictable results when using my own PurgeCSS plugin for CSS. The compilation process completed without errors, but the result looked strange.
The problem was solved by changing the hook priority to a lower one.
Beta Was this translation helpful? Give feedback.
All reactions