Skip to content
This repository has been archived by the owner on Jul 12, 2021. It is now read-only.

Not possible to import YOAST with npm #4

Open
chrfritsch opened this issue Aug 12, 2019 · 4 comments
Open

Not possible to import YOAST with npm #4

chrfritsch opened this issue Aug 12, 2019 · 4 comments

Comments

@chrfritsch
Copy link

Would like to use this widget in my gatsby/netlify-cms site, but I can not include YOAST over the js import command in my preview template.

@ammarax
Copy link

ammarax commented Sep 23, 2019

i had the sabe problem

@crgeary
Copy link
Contributor

crgeary commented Sep 23, 2019

Would either of you be interested in adding a PR for this?

@mihaildu
Copy link

Not sure exactly what you mean by "include YOAST over the js import command" but right now YOAST is added to window object. I agree that exporting YOAST is better so I made this PR #6

Currently to use YOAST you'd have to do this

import 'netlify-cms-yoast-seo/dist/main.js';
const YOAST = window.YOAST;
...

@ammarax
Copy link

ammarax commented Oct 2, 2019

so, there isn't any integration with npm?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants