Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use local cms.css #24

Closed
ghost opened this issue Dec 23, 2017 · 3 comments · Fixed by #28
Closed

use local cms.css #24

ghost opened this issue Dec 23, 2017 · 3 comments · Fixed by #28

Comments

@ghost
Copy link

ghost commented Dec 23, 2017

The netlify-cms CSS file is hardcoded in /static/admin/index.html:
<link rel="stylesheet" href="https://unpkg.com/netlify-cms@^1.0.1/dist/cms.css" />

This leads to problems when upgrading netlify-cms to a new version and when a restrictive Content Security Policy is used.

The right CSS file is already in /cms/node_modules/netlify-cms/dist/cms.css... is it possible to use this?

@ghost
Copy link
Author

ghost commented Dec 23, 2017

It would be even greater if a local version of the netlify-identity-widget is also used

@AustinGreen
Copy link
Contributor

Good point, I'll look into this

@erquhart
Copy link
Contributor

This is addressed in #28. Using a local version of the identity widget is worth considering, we'd just need to do it in the Gatsby plugin package instead of here.

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

Successfully merging a pull request may close this issue.

2 participants