Skip to content

Commit 49ba8bc

Browse files
Version Packages (#49)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a1a0002 commit 49ba8bc

File tree

3 files changed

+27
-26
lines changed

3 files changed

+27
-26
lines changed

Diff for: .changeset/cyan-turtles-sip.md

-25
This file was deleted.

Diff for: CHANGELOG.md

+26
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# astro-netlify-cms
22

3+
## 0.4.0
4+
5+
### Minor Changes
6+
7+
- [#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
8+
9+
⚠️ **BREAKING CHANGE** ⚠️
10+
11+
This release changes how you import a local CSS file in `previewStyles`.
12+
These must now be prefixed with a leading `/`:
13+
14+
```diff
15+
{
16+
previewStyles: [
17+
- 'src/styles/base.css',
18+
+ '/src/styles/base.css',
19+
],
20+
}
21+
```
22+
23+
This allows us to support importing CSS you may have installed from an npm module, for example importing font CSS from Fontsource:
24+
25+
```js
26+
previewStyles: ["@fontsource/roboto"];
27+
```
28+
329
## 0.3.5
430

531
### Patch Changes

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "astro-netlify-cms",
3-
"version": "0.3.5",
3+
"version": "0.4.0",
44
"description": "Add Netlify CMS’s admin dashboard to your Astro project",
55
"repository": "delucis/astro-netlify-cms",
66
"homepage": "https://github.com/delucis/astro-netlify-cms",

0 commit comments

Comments
 (0)