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 d792d07 commit ed1eee7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sass_plugin_setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
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 @@ -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: '',
Expand Down

0 comments on commit ed1eee7

Please sign in to comment.