This repository was archived by the owner on Sep 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ The js module might look like this:
7171 */
7272import CMS from " @staticcms/app"
7373
74- import ' @staticcms/core /dist/main.css' ;
74+ import ' @staticcms/app /dist/main.css' ;
7575
7676/**
7777 * Any imported styles should be automatically be applied to the editor preview
@@ -122,7 +122,7 @@ The js module might look like this:
122122``` javascript
123123import CMS from " @staticcms/app"
124124
125- import ' @staticcms/core /dist/main.css' ;
125+ import ' @staticcms/app /dist/main.css' ;
126126
127127/**
128128 * Optionally pass in a config object. This object will be merged into `config.yml` if it exists
Original file line number Diff line number Diff line change 1- import CMS from "@staticcms/app"
1+ import CMS from "@staticcms/app" ;
2+ import "@staticcms/app/dist/main.css" ;
3+
24// set global variables required by Gatsby's components
35// https://github.com/gatsbyjs/gatsby/blob/deb41cdfefbefe0c170b5dd7c10a19ba2b338f6e/docs/docs/production-app.md#window-variables
46// some Gatsby components require these global variables set here:
57// https://github.com/gatsbyjs/gatsby/blob/deb41cdfefbefe0c170b5dd7c10a19ba2b338f6e/packages/gatsby/cache-dir/production-app.js#L28
6- import emitter from "gatsby/cache-dir/emitter"
7- window . ___emitter = emitter
8- window . ___loader = { enqueue : ( ) => { } , hovering : ( ) => { } }
8+ import emitter from "gatsby/cache-dir/emitter" ;
9+ window . ___emitter = emitter ;
10+ window . ___loader = { enqueue : ( ) => { } , hovering : ( ) => { } } ;
911
1012/**
1113 * Load Static CMS automatically if `window.CMS_MANUAL_INIT` is set.
1214 */
1315// eslint-disable-next-line no-undef
1416if ( ! CMS_MANUAL_INIT ) {
15- CMS . init ( )
17+ CMS . init ( ) ;
1618} else {
17- console . log (
18- `\`CMS_MANUAL_INIT\` flag set, skipping automatic initialization.'`
19- )
19+ console . log ( `\`CMS_MANUAL_INIT\` flag set, skipping automatic initialization.'` ) ;
2020}
2121
2222/**
2323 * The stylesheet output from the modules at `modulePath` will be at `cms.css`.
2424 */
25- CMS . registerPreviewStyle ( `cms.css` )
25+ CMS . registerPreviewStyle ( `cms.css` ) ;
You can’t perform that action at this time.
0 commit comments