Skip to content

Commit

Permalink
Merge pull request #83 from nextcloud-libraries/fix/noid/typo
Browse files Browse the repository at this point in the history
fix: typo in readme
  • Loading branch information
susnux authored Dec 18, 2023
2 parents b58969f + 2e91e16 commit 026b470
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 026b470

Please sign in to comment.