- Webpack
- React
- Babel
- styled-components
- Generate static File
- Import Image
Copy the example project:
cp example [your-project-directory]
npm run dev
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
Use static-fe-deployer to deploy the project.
MIT