From ce0d01bcdcb0618d12c7ddc4c98aa6841a0b93c7 Mon Sep 17 00:00:00 2001 From: Ricardo Devis Agullo Date: Sun, 10 Dec 2023 14:56:42 +0100 Subject: [PATCH] fix css using tabs --- packages/oc-vite-compiler/lib/viteView.js | 2 +- packages/oc-vite-compiler/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/oc-vite-compiler/lib/viteView.js b/packages/oc-vite-compiler/lib/viteView.js index efa580bf..e5e75014 100644 --- a/packages/oc-vite-compiler/lib/viteView.js +++ b/packages/oc-vite-compiler/lib/viteView.js @@ -115,7 +115,7 @@ async function compileView(options) { x => x.fileName.endsWith('.css') ); const cssStyles = cssAssets - .map(x => x.source.replace(/\r?\n/g, '') ?? '') + .map(x => x.source.replace(/\r?\n|\t/g, '') ?? '') .join(' ') .replace(/'/g, '"'); const bundleHash = hashBuilder.fromString(bundle); diff --git a/packages/oc-vite-compiler/package.json b/packages/oc-vite-compiler/package.json index a6aca902..29783494 100644 --- a/packages/oc-vite-compiler/package.json +++ b/packages/oc-vite-compiler/package.json @@ -1,6 +1,6 @@ { "name": "oc-vite-compiler", - "version": "2.1.2", + "version": "2.1.3", "description": "OC-Vite-Compiler", "main": "index.js", "repository": {