twreporter / static-fe-boilerplate

A boilerplate for building static file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TWReporter Frontend Boilerplate for Generating Static File

Contains

Setup the example starter

Copy the example project:

cp example [your-project-directory]

Dev

npm run dev

Build

If you want to build the <base> element in HTML file, you must give the environment variable BASE_URL:

BASE_URL="https://your-host/your-path-1/your-path2/" npm run build

The <base> element is useful if you only redirect the root index.html or you want to put your static files and javascript bundles to different location.

See: <base>: The Document Base URL element

Deploy to Google Cloud Storage with npm scripts

Use static-fe-deployer to deploy the project.

License

MIT

About

A boilerplate for building static file


Languages

Language:JavaScript 99.2%Language:HTML 0.7%Language:CSS 0.1%