Skip to content

Commit

Permalink
chore: update nuxt readme and docs, extend default content (#3176)
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon-dziewonski authored May 28, 2024
1 parent 9acc25b commit 295a3f7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-clocks-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@storefront-ui/nuxt": patch
---

[CHANGED] Update documentatnion/readme, extand default content path to `js` extension
2 changes: 1 addition & 1 deletion apps/docs/components/content/2.getting-started/vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ In order for Tailwind to properly detect the utility classes used in Storefront
import type { Config } from 'tailwindcss';

export default <Config>{
content: ['./**/*.vue', './node_modules/@storefront-ui/vue/**/*.{js,mjs}'],
content: ['./**/*.vue'],
};
```

Expand Down
2 changes: 1 addition & 1 deletion packages/sfui/frameworks/nuxt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ In order for Tailwind to properly detect the utility classes used in Storefront
import type { Config } from 'tailwindcss';

export default <Config>{
content: ['./**/*.vue', './node_modules/@storefront-ui/vue/**/*.{js,mjs}'],
content: ['./**/*.vue'],
};
```

Expand Down
2 changes: 1 addition & 1 deletion packages/sfui/frameworks/nuxt/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default defineNuxtModule<ModuleOptions>({
},
// Default configuration options of the Nuxt module
defaults: {
contentPath: './node_modules/@storefront-ui/vue/**/*.mjs',
contentPath: './node_modules/@storefront-ui/vue/**/*.{js,mjs}',
},
async setup(options, nuxt) {
const { contentPath } = options;
Expand Down

0 comments on commit 295a3f7

Please sign in to comment.