From ed1eee74d0a9101c9f1bd7593b4e160df76f8ad8 Mon Sep 17 00:00:00 2001 From: Mqxx <62719703+Mqxx@users.noreply.github.com> Date: Fri, 12 Jan 2024 06:56:41 +0100 Subject: [PATCH] Update sass_plugin_setup.ts --- src/sass_plugin_setup.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/sass_plugin_setup.ts b/src/sass_plugin_setup.ts index 0844fe5..c34b2ee 100644 --- a/src/sass_plugin_setup.ts +++ b/src/sass_plugin_setup.ts @@ -1,4 +1,3 @@ -import { dirname } from "https://deno.land/std@0.211.0/path/dirname.ts"; import sass from 'https://deno.land/x/denosass@1.0.6/mod.ts'; import { BuildOptions, @@ -30,12 +29,11 @@ export default function sassPluginSetup( onLoadFunction( { filter: /\.scss$/ }, async (args) => { - const path = dirname(args.path); + const path = new URL('.', args.path).pathname; - console.log(path, args.path); - const fileContent = await Deno.readTextFile(args.path); + console.log(path, args.path); return { contents: '',