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 9982911 commit 5ec50a0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/sass_plugin_setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,17 @@ export default function sassPluginSetup(
onLoadFunction(
{ filter: /\.scss$/ },
async (args) => {
const path = dirname(args.path);

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

console.log(fileContent);


try {
const cssContent = sass(
fileContent,
{
style: initialOptions.minify ? 'compressed' : 'expanded',
load_paths: [
Deno.cwd(),
path
fileDirectoryPath
]
}
).to_string();
Expand Down

0 comments on commit 5ec50a0

Please sign in to comment.