Skip to content

Commit

Permalink
Fix compile-css script
Browse files Browse the repository at this point in the history
  • Loading branch information
nickschot committed Dec 30, 2023
1 parent f6ea094 commit 8886640
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions compile-css.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

const sass = require('sass'); // eslint-disable-line node/no-unpublished-require
// eslint-disable-next-line n/no-unpublished-require
const sass = require('sass');
const fs = require('fs');
const path = require('path');

Expand All @@ -14,8 +15,8 @@ const outputFile = path.join(__dirname, 'vendor', 'ember-model-select.css');

// Compile main file
var result = sass.renderSync({
data: fs.readFileSync(inputFile, 'utf8'),
data: fs.readFileSync(path.resolve(inputFile), 'utf8'),
includePaths: ['app/styles', 'node_modules/ember-power-select/app/styles'],
});

fs.writeFileSync(outputFile, result.css);
fs.writeFileSync(path.resolve(outputFile), result.css);

0 comments on commit 8886640

Please sign in to comment.