Skip to content

Commit

Permalink
Update sass_plugin_setup.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Klinger authored and Max Klinger committed Jan 12, 2024
1 parent f47315c commit e3cb4df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sass_plugin_setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ export default function sassPluginSetup(
onLoadFunction(
{ filter: /\.scss$/ },
async (args) => {
const file = await Deno.readTextFile(args.path);
console.log(args);

const fileContent = await Deno.readTextFile(args.path);
try {
const css = sass(
file,
fileContent,
{
style: initialOptions.minify ? 'compressed' : 'expanded'
}
Expand Down

0 comments on commit e3cb4df

Please sign in to comment.