@localnerve/web-component-build 0.2.3 → 0.2.4

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.
Files changed (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -12,7 +12,9 @@ The following is a table of _some_ of the possible input, processing, and output
12
12
 
13
13
  | input | processing | output |
14
14
  | ----- | ---------- | ------ |
15
- | javascript | minify or optional pass-thru | javascript |
15
+ | javascript | minify javascript | javascript |
16
+ | css | minify css | css |
17
+ | html | minify html | html |
16
18
  | css, html | minify css, prepend style tag to html, minify html | css, html |
17
19
  | css, html, cssHref | minfy css, prepend style tag to html, prepend link tag to html, minify html | css, html |
18
20
  | cssHref, html | prepend link tag to html, minify html | html |
@@ -80,7 +82,7 @@ One or more of `cssPath`, `jsPath`, and/or `htmlPath` **must** be supplied. They
80
82
  + cssLinkHref will be prepended in a `link` tag
81
83
  + html will be inserted into the javascript file if `jsReplacement` and `jsPath` is supplied
82
84
  * `jsPath` {String} - Full path to the input javascript file
83
- * `jsReplacement` {String} - The token to replace with the css or html in the javascript file
85
+ * `jsReplacement` {String|RegExp} - The replacement pattern for the css or html in the javascript file. See [pattern](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#pattern) for full documentation
84
86
  If supplied:
85
87
  + A replacement will be attempted in the javascript file
86
88
  + If **not supplied** or falsy, No replacement will be attempted and all assets are just copied to `outputDir`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localnerve/web-component-build",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "A library to help build web components",
5
5
  "main": "index.js",
6
6
  "type": "module",