
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Generate Static HTML Pages from Single Page Applications 🚀
Build Plus is a powerful tool that allows you to effortlessly add static HTML pages into your Single Page Application (SPA) build, significantly enhancing SEO capabilities. 🌐✨
Integrating Build Plus into your build process is a breeze. Simply add the build-plus
command to your existing build
script, and you're good to go! 🎉
For instance, with create-react-app
:
"scripts": {
"build": "react-scripts build && build-plus"
}
Or with vite
:
"scripts": {
"build": "vite build && build-plus"
}
Build Plus seamlessly integrates with popular single page application frameworks including ReactJS
, VueJS
, Angular
, and more.
👍 Great for static website hosting services.
npm install build-plus
Build Plus utilizes a pages.json configuration file by default, located at the root of your project. This file allows you to specify the paths you want to export as static pages.
Sample pages.json
:
{
"pages": [
"/",
"/home",
"/about",
"/contact",
"/services",
"/product/abc",
"/product/def",
"/product/ghi",
"/product/jkl"
]
}
All coniguration parameters
Key | Usage |
---|---|
pages | List of paths which need to be exported |
src | Build directory path (Default: build ) |
port | Port to use while generating pages (Default: 8080 ) |
base | Base path, e.g. github pages uses repository name as base path |
To use a different configuration file:
build-plus some-other-build-plus-config.json
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.
Developed & maintained by neilveil.
FAQs
Generate Static HTML Pages from Single Page Applications
The npm package build-plus receives a total of 1 weekly downloads. As such, build-plus popularity was classified as not popular.
We found that build-plus 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.