-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Description
What problem does this feature solve?
How to configure demo.html content at web component build target?
What does the proposed API look like?
chainWebpack: config => {
config
.plugin("html")
.tap(args => {
if (process.env.NODE_ENV === "production") {
args[0].templateContent = `
<meta charset="utf-8">
<title>room-scheme demo</title>
<script src="https://unpkg.com/vue"></script>
<script src="./room-scheme.js"></script>
<room-scheme data-scheme=${JSON.stringify(data)}></room-scheme>
`
}
return args
})
}Metadata
Metadata
Assignees
Labels
No labels