Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/content/2.tailwind/1.config.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ When you install the module, the default Tailwind configuration for your project
"{srcDir}/utils/**/*.{js,ts,mjs}",
"{srcDir}/{A,a}pp.{vue,js,jsx,mjs,ts,tsx}",
"{srcDir}/{E,e}rror.{vue,js,jsx,mjs,ts,tsx}",
"{srcDir}/app.config.{js,ts,mjs}"
"{srcDir}/app.config.{js,ts,mjs}",
"{srcDir}/app/spa-loading-template.html"
],
"plugins": []
}
Expand Down
1 change: 1 addition & 0 deletions playground/app/spa-loading-template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div class="bg-orange-700">hello</div>
1 change: 1 addition & 0 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const logger = consola.withTag('nuxt:tailwindcss:playground')

export default defineNuxtConfig({
extends: ['./theme'],
// ssr: false,

// builder: 'webpack',
modules: [
Expand Down
3 changes: 2 additions & 1 deletion src/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ const resolveContentPaths = (srcDir: string, nuxtOptions = useNuxt().options) =>
r(`{A,a}pp${sfcExtensions}`),
r(`{E,e}rror${sfcExtensions}`),
r(`app.config${defaultExtensions}`),
].filter(Boolean)
!nuxtOptions.ssr && nuxtOptions.spaLoadingTemplate !== false && r(typeof nuxtOptions.spaLoadingTemplate === 'string' ? nuxtOptions.spaLoadingTemplate : 'app/spa-loading-template.html'),
].filter((p): p is string => Boolean(p))
}

/**
Expand Down