svelte-meta
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "svelte-meta", | ||
"description": "Easily generate SEO metadata for Svelte", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"license": "MIT", | ||
@@ -37,3 +37,2 @@ "main": "dist/index.js", | ||
"rollup-plugin-svelte": "^6.1.0", | ||
"rollup-plugin-typescript2": "^0.29.0", | ||
"svelte": "^3.29.4", | ||
@@ -40,0 +39,0 @@ "svelte-preprocess": "^4.5.2", |
@@ -5,2 +5,8 @@ # Svelte Meta | ||
### Features | ||
- Automatically set relevant social meta tags common attributes like `title` and `description` | ||
### Usage | ||
```sh | ||
@@ -22,4 +28,22 @@ npm i svelte-meta | ||
`svelte-meta` will automatically set relevant HTML meta and `og:` properties, along with a `<title>` tag if a `title` is specified. | ||
#### Svelte-preprocess | ||
`svelte-meta` is written in Typescript, and requires Svelte preprocessing to be enabled. If you're using [Sapper](https://sapper.svelte.dev/) this comes enabled by default. | ||
To enable preprocessing, install `svelte-preprocess` and include it in the svelte config in your `rollup.config.js` or `webpack.config.js` | ||
```sh | ||
npm i svelte-preprocess | ||
``` | ||
```js | ||
import autoPreprocess from 'svelte-preprocess'; | ||
svelte({ | ||
preprocess: autoPreprocess() | ||
}); | ||
``` | ||
See the [svelte-preprocess docs](https://github.com/sveltejs/svelte-preprocess) for more. | ||
### Properties | ||
@@ -26,0 +50,0 @@ |
Sorry, the diff of this file is not supported yet
29697
9
56
5
874