Skip to content

Commit

Permalink
fix: typo in readme
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <raimund.schluessler+github@mailbox.org>
  • Loading branch information
raimund-schluessler authored and susnux committed Dec 18, 2023
1 parent b58969f commit 2e91e16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ You can also modify the configuration, for example if you want to set an include

```js
import { createAppConfig } from '@nextcloud/vite-config'
import { mergeConfig } from 'vite'
import { defineConfig } from 'vite'
import path from 'node:path'

const yourOverrides = defineConfig({
Expand Down Expand Up @@ -89,4 +89,4 @@ For apps any styles can be injected in the JS by dynamically inject the styles i
But this only works in DOM environments, so for libraries this might not work (e.g. while testing in the Node environment).

So for libraries the CSS will still be extracted by Vite, but the extracted CSS assets will be imported.
This way the library user can decide how to handle the imported CSS without relying on a DOM environment.
This way the library user can decide how to handle the imported CSS without relying on a DOM environment.

0 comments on commit 2e91e16

Please sign in to comment.