import html from '@rollup/plugin-html'html()Css files added to index.html as liks
Empty line inside generated index.html
Thanks.
Thanks for opening an issue. Citing the issue template:
Issues without minimal reproductions will be closed! Please provide one by:
- Using the REPL.it plugin reproduction template at https://repl.it/@rollup/rollup-plugin-repro
- Provide a minimal repository link (Read https://git.io/fNzHA for instructions).
These may take more time to triage than the other options.- Using the REPL at https://rollupjs.org/repl/
Please add a reproduction and we'll be happy to triage further.
Yes, link param is not working you can try with:
html({
fileName: 'index.html',
publicPath: './', // appended before index.js - <script src="[publicPath]index.js"></script>
title: 'Wire JS',
attributes: {
html: { batsignal: 'on', lang: 'bat' },
link: { name: 'rel', content: 'stylesheet' },
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'minimum-scale=1, initial-scale=1, width=device-width' }
],
}),
from here html attributes will be added but not link.
Ok, I get it - the css extraction only work with https://www.npmjs.com/package/rollup-plugin-postcss
And not with https://www.npmjs.com/package/rollup-plugin-less
Anyway, it works now. Please add something to description.
Most helpful comment
Ok, I get it - the css extraction only work with https://www.npmjs.com/package/rollup-plugin-postcss
And not with https://www.npmjs.com/package/rollup-plugin-less
Anyway, it works now. Please add something to description.