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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
I decided to share the results of some experiments.
I used the code base (CodeSpace / repo -
issuesbranch) andbuild:edgescript to compileprojects\bootstrap.I added to
projects/bootstrap/webpack.edge.mjssome lines:I try to get a preload tag for the script in
projects/bootstrap/src/views/home.htmlBut after compilation there is no preload tag.
If we turn off some options in
@swc/htmlminimizer 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