kmcom-nuxt-layers 1.7.5 → 1.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,5 +8,11 @@
8
8
 
9
9
  @config '#layers/core/tailwind.config.js';
10
10
 
11
+ /* Force Tailwind 4 to eagerly scan all layer and app component files upfront.
12
+ Without this, dev mode compiles CSS lazily (per-file as Vite requests them),
13
+ causing an HMR update mid-render that produces a visible layout shift. */
14
+ @source '../../../../*/app/**/*.{vue,ts}';
15
+ @source '../../../../../apps/*/app/**/*.{vue,ts}';
16
+
11
17
  @import '#layers/core/app/assets/css/layout.css';
12
18
  @import '#layers/core/app/assets/css/base.css';
@@ -1,17 +1,8 @@
1
1
  /** @type {import('tailwindcss').Config} */
2
2
  module.exports = {
3
- content: [
4
- 'app/components/**/*.{vue,js,ts}',
5
- 'app/composables/**/*.{js,ts}',
6
- 'app/content/**/*.md',
7
- 'app/layouts/**/*.vue',
8
- 'app/pages/**/*.vue',
9
- 'app/plugins/**/*.{js,ts}',
10
- 'app/App.{js,ts,vue}',
11
- 'app/app.{js,ts,vue}',
12
- 'app/Error.{js,ts,vue}',
13
- 'app/error.{js,ts,vue}',
14
- ],
3
+ // No content array — Tailwind 4's Vite plugin auto-discovers all processed files.
4
+ // A content array here would restrict scanning to only these paths (v3 behaviour),
5
+ // causing utilities from ui/layout/theme/etc layers to be absent from the initial CSS.
15
6
 
16
7
  safelist: [
17
8
  // Swiss Grid System - Responsive grid classes for BaseGridItem
@@ -30,9 +30,7 @@ export default defineNuxtConfig({
30
30
 
31
31
  vite: {
32
32
  optimizeDeps: {
33
- include: [
34
- 'locomotive-scroll',
35
- ]
36
- }
37
- }
33
+ include: ['locomotive-scroll'],
34
+ },
35
+ },
38
36
  })
@@ -19,8 +19,6 @@
19
19
  opacity: 0 !important;
20
20
  }
21
21
 
22
- @layer utilities {
23
- .site-word {
24
- display: block;
25
- }
22
+ .site-word {
23
+ display: block;
26
24
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kmcom-nuxt-layers",
3
3
  "private": false,
4
- "version": "1.7.5",
4
+ "version": "1.7.7",
5
5
  "description": "Composable Nuxt 4 layers for building scalable Vue applications",
6
6
  "exports": {
7
7
  "./layers/core": "./layers/core/nuxt.config.ts",
@@ -189,6 +189,7 @@
189
189
  },
190
190
  "scripts": {
191
191
  "dev": "pnpm -F playground dev",
192
+ "dev:debug": "pnpm -F debug dev",
192
193
  "dev:identity": "pnpm -F visual-identity dev",
193
194
  "dev:core": "PLAYGROUND_LAYERS=core pnpm -F playground dev",
194
195
  "dev:ui": "PLAYGROUND_LAYERS=core,ui pnpm -F playground dev",