patch-fix
This commit is contained in:
parent
20e7588019
commit
6a48b53216
|
@ -2,7 +2,7 @@ diff --git a/node_modules/sass-embedded/dist/bin/sass.js b/node_modules/sass-emb
|
|||
old mode 100755
|
||||
new mode 100644
|
||||
diff --git a/node_modules/sass-embedded/dist/lib/src/legacy/importer.js b/node_modules/sass-embedded/dist/lib/src/legacy/importer.js
|
||||
index 51fd501..2246d7f 100644
|
||||
index 51fd501..ed5880f 100644
|
||||
--- a/node_modules/sass-embedded/dist/lib/src/legacy/importer.js
|
||||
+++ b/node_modules/sass-embedded/dist/lib/src/legacy/importer.js
|
||||
@@ -92,6 +92,8 @@ class LegacyImporterWrapper {
|
||||
|
@ -10,7 +10,7 @@ index 51fd501..2246d7f 100644
|
|||
// exist so that the user's custom importer can still handle the
|
||||
// URL.
|
||||
+ console.warn(`Invalid URL detected: ${url}. Skipping import.`);
|
||||
+ return null;
|
||||
+ return;
|
||||
}
|
||||
else {
|
||||
throw error;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// biome-ignore lint/correctness/noNodejsModules: <explanation>
|
||||
import path from 'node:path'
|
||||
import sass from "sass";
|
||||
import { CSSOptions } from 'vite'
|
||||
import mkcert from 'vite-plugin-mkcert'
|
||||
import { PolyfillOptions, nodePolyfills } from 'vite-plugin-node-polyfills'
|
||||
|
@ -32,9 +33,10 @@ export default {
|
|||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
implementation: require('sass'),
|
||||
additionalData: '@import "src/styles/imports";\n',
|
||||
includePaths: ['./public', './src/styles']
|
||||
sourceMaps: false,
|
||||
implementation: sass,
|
||||
additionalData: '@import "~/styles/imports";\n',
|
||||
includePaths: ['./public', './src/styles'],
|
||||
}
|
||||
} as CSSOptions['preprocessorOptions']
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user