firebase-os 1.1.6 → 1.1.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.
- package/package.json +1 -1
- package/scripts/postinstall.js +2 -2
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -191,8 +191,8 @@ const viteConfigPath = path.join(consumerRoot, 'vite.config.ts');
|
|
|
191
191
|
if (fs.existsSync(viteConfigPath)) {
|
|
192
192
|
let viteConfig = fs.readFileSync(viteConfigPath, 'utf8');
|
|
193
193
|
if (!viteConfig.includes('@tailwindcss/vite')) {
|
|
194
|
-
viteConfig = "import tailwindcss from '@tailwindcss/vite'
|
|
195
|
-
viteConfig = viteConfig.replace('plugins: [', 'plugins: [
|
|
194
|
+
viteConfig = "import tailwindcss from '@tailwindcss/vite';\n" + viteConfig;
|
|
195
|
+
viteConfig = viteConfig.replace('plugins: [', 'plugins: [\n tailwindcss(),');
|
|
196
196
|
fs.writeFileSync(viteConfigPath, viteConfig);
|
|
197
197
|
console.log(' ✓ Patched vite.config.ts to enable Tailwind CSS v4');
|
|
198
198
|
}
|