Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preload <link rel="preload"> can not self closing by html-webpack-plugin set xhtml to true #3012

Open
xugege opened this issue Nov 26, 2018 · 3 comments

Comments

@xugege
Copy link

xugege commented Nov 26, 2018

Version

3.0.0

Node and OS info

node v10.13.0 / yarn 1.10.1 / Windows 7

Steps to reproduce

config.plugin('html').tap(args => {
args[0].minify = false
args[0].xhtml = true
console.log("===========================")
console.log(args)
return args
})

What is expected?

link tag self-closing

What is actually happening?

preload link is not self closing

@haoqunjiang
Copy link
Member

XHTML & HTML5 are not compatible. Why did you do that?
https://stackoverflow.com/a/39560454/2302258

@xugege
Copy link
Author

xugege commented Nov 26, 2018

the index.html needs to be used as theamleaf template, theamleaf console error message link tag not end

@justlstn
Copy link

I have the same issue. The tag link have to be self-closed but otherwise I get an error like this:

{"status":500,"error":"Internal Server Error","message":"Exception parsing document: template=\"index\", line 20 - column 58","timeStamp":"Fri Jun 14 13:29:31 MSK 2019","trace":null}

How do I can resolve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants