Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
rollup-plugin-html
Advanced tools
Rollup plugin for loading content of HTML files to use as string variable in JavaScript code.
npm install --save-dev rollup-plugin-html
import { rollup } from 'rollup';
import html from 'rollup-plugin-html';
rollup({
entry: 'main.js',
plugins: [
html({
include: '**/*.html'
})
]
}).then(...)
Type: array
or string
Default: **/*.html
A single file pattern, or an array of file patterns to include when importing html files. For more details see rollup-pluginutils.
Type: array
or string
Default: undefined
A single file pattern, or an array of file patterns to exclude when importing html files. For more details see rollup-pluginutils.
Type: Object
Default: {}
The options which are given to html-minifier
E.g.:
rollup({
entry: 'main.js',
plugins: [
html({
include: '**/*.html',
htmlMinifierOptions: {
collapseWhitespace: true,
collapseBooleanAttributes: true,
conservativeCollapse: true,
minifyJS: true
}
})
]
}).then(...)
MIT
Thanks for Bogdan Chadkin (@TrySound) for his rollup-plugin-string rollup plugin which I used as the basis for this plugin.
FAQs
HTML import plugin for rollup
The npm package rollup-plugin-html receives a total of 8,386 weekly downloads. As such, rollup-plugin-html popularity was classified as popular.
We found that rollup-plugin-html demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.