@techexp/webitem 0.7.0 → 0.7.1
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 -1
- package/dist/webitem-esm.js +1 -1
- package/dist/webitem-script-min.js +1 -1
- package/dist/webitem-script.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -127,7 +127,7 @@ with CSS outside the component.
|
|
|
127
127
|
|
|
128
128
|
If you need to use a common CSS among components, there are two options:
|
|
129
129
|
|
|
130
|
-
1. Use `CSSStyleSheet` object and pass
|
|
130
|
+
1. Use `CSSStyleSheet` object and pass to the `styleSheets` option. This is the recommended approach.
|
|
131
131
|
For example:
|
|
132
132
|
|
|
133
133
|
```js
|
|
@@ -151,6 +151,8 @@ webitem.defineElement({
|
|
|
151
151
|
<link rel="stylesheet" href="css/common.css">
|
|
152
152
|
```
|
|
153
153
|
|
|
154
|
+
Usually, this options is slower.
|
|
155
|
+
|
|
154
156
|
## Examples
|
|
155
157
|
There is a full set of examples in the repo's `src/` directory in both `index.html` and `test/webitem.test.js`.
|
|
156
158
|
Next we will show some as well.
|
package/dist/webitem-esm.js
CHANGED
package/dist/webitem-script.js
CHANGED