Socket
Book a DemoInstallSign in
Socket

build-plus

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

build-plus

Generate Static HTML Pages from Single Page Applications

1.1.4
latest
Source
npmnpm
Version published
Weekly downloads
1
-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

Build Plus

Downloads Version

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. 🌐✨

Seamless Integration

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"
}

Compatibility

Build Plus seamlessly integrates with popular single page application frameworks including ReactJS, VueJS, Angular, and more.

👍 Great for static website hosting services.

Installation

npm install build-plus

Configuration file

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

KeyUsage
pagesList of paths which need to be exported
srcBuild directory path (Default: build)
portPort to use while generating pages (Default: 8080)
baseBase 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

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Developer

Developed & maintained by neilveil.

Keywords

page-rendering

FAQs

Package last updated on 24 Sep 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.