indigotree/netlify-cms-yoast-seo

Not possible to import YOAST with npm

Opened this issue · 4 comments

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.

i had the sabe problem

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

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;
...

so, there isn't any integration with npm?