@paulbarre/wc-furigana
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@paulbarre/wc-furigana", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "Paul Barré <contact@paulbarre.co>", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -71,2 +71,31 @@ # Furigana | ||
### Vuepress | ||
1. Install the package | ||
``` | ||
npm i @paulbarre/wc-furigana | ||
``` | ||
2. If you don't have it already, create a configuration file. From root folder add a `.vuepress` subfolder and create `config.js`. | ||
3. Add headers to this configuration file. | ||
```js | ||
module.exports = { | ||
head: [ | ||
['script', { | ||
type: 'module', | ||
src: 'https://unpkg.com/@paulbarre/wc-furigana@latest/dist/furigana/furigana.esm.js' | ||
}], | ||
['script', { | ||
nomodule: true, | ||
src: 'https://unpkg.com/@paulbarre/wc-furigana@latest/dist/furigana/furigana.js' | ||
}] | ||
] | ||
} | ||
``` | ||
> **Example** <br> You can run the example in `examples` folder with `npm run serve`. | ||
### Angular | ||
@@ -154,4 +183,4 @@ | ||
<head> | ||
<script type="module" src="https://unpkg.com/@paulbarre/wc-furigana/latest/dist/furigana/furigana.esm.js"></script> | ||
<script nomodule src="https://unpkg.com/@paulbarre/wc-furigana/latest/dist/furigana/furigana.js"></script> | ||
<script type="module" src="https://unpkg.com/@paulbarre/wc-furigana@latest/dist/furigana/furigana.esm.js"></script> | ||
<script nomodule src="https://unpkg.com/@paulbarre/wc-furigana@latest/dist/furigana/furigana.js"></script> | ||
</head> | ||
@@ -158,0 +187,0 @@ <body> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
660179
62
193