netlify-cms-yoast-seo
netlify-cms-yoast-seo copied to clipboard
Not possible to import YOAST with npm
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 https://github.com/indigotree/netlify-cms-yoast-seo/pull/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?