Skip to content

twreporter/static-fe-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages