Skip to content

netlify-cms seems not provide "cms.css" #64

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

Closed
hideyukisaito opened this issue Aug 6, 2018 · 1 comment
Closed

netlify-cms seems not provide "cms.css" #64

hideyukisaito opened this issue Aug 6, 2018 · 1 comment

Comments

@hideyukisaito
Copy link

netlify-cms seems not provide cms.css which is required in lib/entry.js. The provided package now looks like as following:

2018-08-06 18 35 33

The following line in lib/entry.js causes a fatal error in webpack compilation process.

https://github.com/medfreeman/nuxt-netlify-cms-module/blob/master/lib/entry.js#L12

...

const CSS = require("netlify-cms/dist/cms.css");

...

Successfully compiled after modified like this, and module works fine:

/* global REQUIRE_EXTENSIONS */
/* eslint-disable import/order */
function requireAll(r) {
  r.keys().forEach(r);
}

const CMS = require("netlify-cms");

if (REQUIRE_EXTENSIONS) {
  requireAll(require.context("extensions/", true, /\.js$/));
}
// const CSS = require("netlify-cms/dist/cms.css");

module.exports = {
  CMS,
  // CSS
};

Is this a known issue?

Thanks!

@medfreeman
Copy link
Owner

Hi!
Yes, it comes from netlify-cms v2.X
I'll probably either make a breaking change to support this, or make it optional.
Thanks!

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

No branches or pull requests

2 participants