packaton 0.0.16 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/package.json +1 -1
- package/src/plugins-prod/HtmlCompiler.js +1 -1
package/README.md
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
Static Site Generator (SSG). Inlines CSS and JS and
|
|
4
4
|
creates a header file with their corresponding CSP hashes.
|
|
5
5
|
|
|
6
|
+
## Usage Example
|
|
7
|
+
https://github.com/ericfortis/mockaton/tree/main/www
|
|
8
|
+
|
|
6
9
|
## Limitations
|
|
7
10
|
- `src` and `href` URLs must be absolute
|
|
8
11
|
- must have an index
|
package/package.json
CHANGED
|
@@ -49,7 +49,7 @@ export class HtmlCompiler {
|
|
|
49
49
|
}
|
|
50
50
|
if (this.css) {
|
|
51
51
|
this.css = await this.#minifyCSS(this.css)
|
|
52
|
-
this.html = this.html.replace('
|
|
52
|
+
this.html = this.html.replace('</head>', `<style>${this.css}</style></head>`)
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|