@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.
- package/README.md +4 -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
|
|
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
|
|
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`
|