How to generate single file (HTML with all the CSS/JS inside) from React project
Note:
- SVG files will be included (as SVG elements) in the single file.
- Pixel based image files will be included as links/paths, so please host them somewhere to be accessible.
- Also please host font files somewhere and then link them with
@font-face
.
Steps:
npm install --save-dev gulp gulp-inline-source gulp-replace