We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
{ "art-template": "^4.10.1", "art-template-loader": "^1.4.3", "html-webpack-plugin": "^2.28.0", "webpack": "^2.6.1" }
在
new htmlWebpackPlugin({ title: 'webpack-multipages', template: './src/assets/index.art' })
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title><%= htmlWebpackPlugin.options.title%></title> </head> <body> <%- include("./header", {user: "hehe2"})%> </body> </html>
在 include 前面如果有 -,则 include 进来的模板包含完整的 doctype>html>head+body>header,
-
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>webpack-multipages</title> </head> <body> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>webpack-multipages</title> </head> <body> <nav> hehe2 </nav> <script type="text/javascript" src="/index.js"></script></body> </html>
而没有-则正常
The text was updated successfully, but these errors were encountered:
能否提供一个 zip 下载?
Sorry, something went wrong.
@aui github
goofychris/art-template@4ccc758
art-template@4.10.2 已经解决此 BUG
No branches or pull requests
在
在 include 前面如果有
-
,则 include 进来的模板包含完整的 doctype>html>head+body>header,而没有
-
则正常The text was updated successfully, but these errors were encountered: