Skip to content

Commit

Permalink
Update sass_plugin_setup.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mqxx committed Jan 12, 2024
1 parent aaafdee commit 4130f35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sass_plugin_setup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { dirname } from "https://deno.land/[email protected]/path/dirname.ts";
import sass from 'https://deno.land/x/[email protected]/mod.ts';
import {
BuildOptions,
Expand Down Expand Up @@ -29,7 +30,7 @@ export default function sassPluginSetup(
onLoadFunction(
{ filter: /\.scss$/ },
async (args) => {
const path = new URL('.', args.path).pathname;
const path = dirname(args.path);

const fileContent = await Deno.readTextFile(args.path);

Expand Down

0 comments on commit 4130f35

Please sign in to comment.