Skip to content

Commit

Permalink
Version Packages (#49)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Dec 10, 2022
1 parent a1a0002 commit 49ba8bc
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
25 changes: 0 additions & 25 deletions .changeset/cyan-turtles-sip.md

This file was deleted.

26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# astro-netlify-cms

## 0.4.0

### Minor Changes

- [#48](https://github.com/delucis/astro-netlify-cms/pull/48) [`a1a0002`](https://github.com/delucis/astro-netlify-cms/commit/a1a0002c63c542a4dd82ae093effaf18bb824a84) Thanks [@delucis](https://github.com/delucis)! - Add support for importing npm packages via `previewStyles` config

⚠️ **BREAKING CHANGE** ⚠️

This release changes how you import a local CSS file in `previewStyles`.
These must now be prefixed with a leading `/`:

```diff
{
previewStyles: [
- 'src/styles/base.css',
+ '/src/styles/base.css',
],
}
```

This allows us to support importing CSS you may have installed from an npm module, for example importing font CSS from Fontsource:

```js
previewStyles: ["@fontsource/roboto"];
```

## 0.3.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "astro-netlify-cms",
"version": "0.3.5",
"version": "0.4.0",
"description": "Add Netlify CMS’s admin dashboard to your Astro project",
"repository": "delucis/astro-netlify-cms",
"homepage": "https://github.com/delucis/astro-netlify-cms",
Expand Down

0 comments on commit 49ba8bc

Please sign in to comment.