forked from withastro/astro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(preact): add support for devtools (withastro#10938)
* feat(preact): add support for devtools * Update little-dryers-stare.md
- Loading branch information
1 parent
3412535
commit fd508a0
Showing
2 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
"@astrojs/preact": minor | ||
--- | ||
|
||
Adds a `devtools` option | ||
|
||
You can enable [Preact devtools](https://preactjs.github.io/preact-devtools/) in development by setting `devtools: true` in your `preact()` integration config: | ||
|
||
```js | ||
import { defineConfig } from "astro/config" | ||
import preact from "@astrojs/preact" | ||
|
||
export default defineConfig({ | ||
integrations: [ | ||
preact({ devtools: true }) | ||
] | ||
}) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters