Merge branch 'main' into next
This commit is contained in:
commit
5c86462859
@ -4,7 +4,7 @@ title: Bundling
|
|||||||
weight: 5
|
weight: 5
|
||||||
---
|
---
|
||||||
|
|
||||||
This tutorial guides you through the steps for adding Static CMS via a package manager to a site that's built with a common [static site generator](https://www.staticgen.com/). If you want to start form a template, the [Next Template](docs/start-with-a-template) provides a great example of bundling in action.
|
This tutorial guides you through the steps for adding Static CMS via a package manager to a site that's built with a common [static site generator](https://www.staticgen.com/). If you want to start form a template, the [Next Template](/docs/start-with-a-template) provides a great example of bundling in action.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ Then create a new route for your project (for instance at `/admin`), and import
|
|||||||
import CMS from '@staticcms/core';
|
import CMS from '@staticcms/core';
|
||||||
```
|
```
|
||||||
|
|
||||||
The default export is a _CMS_ object, which has an `init` method that takes an object with a `config` attribute. The `config` attribute is an object representing the [configuration options](docs/configuration-options). You can use destructuring assignment syntax as shorthand:
|
The default export is a _CMS_ object, which has an `init` method that takes an object with a `config` attribute. The `config` attribute is an object representing the [configuration options](/docs/configuration-options). You can use destructuring assignment syntax as shorthand:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import CMS from '@staticcms/core';
|
import CMS from '@staticcms/core';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user