-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add test and example for inline all assets into HTML
- Loading branch information
Showing
25 changed files
with
5,083 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Inline all assets into HTML | ||
|
||
This is an example how to build website into single HTML file. | ||
All assets such as images, SVG, fonts will be inlined in CSS and in HTML. | ||
All generated JS and CSS will be inlined into HTML. | ||
|
||
Use the [HTML Builder Plugin](https://github.com/webdiscus/html-bundler-webpack-plugin) for Webpack | ||
to compile and bundle source files in HTML. | ||
|
||
## View in browser | ||
|
||
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/inline-all-assets-to-html?file=README.md) | ||
|
||
## How to use | ||
|
||
```sh | ||
git clone https://github.com/webdiscus/html-bundler-webpack-plugin.git | ||
cd examples/inline-all-assets-to-html | ||
npm install | ||
npm run build | ||
``` |
Oops, something went wrong.