Not possible to import YOAST with npm
Opened this issue · 4 comments
chrfritsch commented
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 commented
i had the sabe problem
crgeary commented
Would either of you be interested in adding a PR for this?
mihaildu commented
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 commented
so, there isn't any integration with npm?