1.1.4 ā€¢ Published 8 months ago

build-plus v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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.

1.1.4

8 months ago

1.1.3

8 months ago

1.1.2

8 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.0

8 months ago

0.1.2

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago