Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
rollup-plugin-serve
Advanced tools
npm install --save-dev rollup-plugin-serve
// rollup.config.js
import serve from 'rollup-plugin-serve'
export default {
entry: 'entry.js',
dest: 'bundle.js',
plugins: [
serve('dist')
]
}
By default it serves the current project folder. Change it by passing a string:
serve('public') // will be used as contentBase
// Default options
serve({
// Folder to serve files from,
contentBase: '',
// Set to true to return index.html instead of 404
historyApiFallback: false,
// Options used in setting up server
host: 'localhost',
port: 10001
})
master
Please see CHANGELOG for more information what has changed recently.
Contributions and feedback are very welcome.
To get it running:
npm install
npm run build
The MIT License (MIT). Please see License File for more information.
[0.1.0] - 2016-09-29
open
open the project in browserhistoryApiFallback
root
is now contentBase
FAQs
Serve your rolled up bundle
The npm package rollup-plugin-serve receives a total of 26,790 weekly downloads. As such, rollup-plugin-serve popularity was classified as popular.
We found that rollup-plugin-serve 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.