fix: lint use async compile

This commit is contained in:
Barış Soner Uşaklı
2022-10-08 22:58:08 -04:00
parent 36b29d0266
commit beb52df1d9
2 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,6 @@ const bodyParser = require('body-parser');
const fs = require('fs');
const path = require('path');
const childProcess = require('child_process');
const sass = require('../src/utils').getSass();
const webpack = require('webpack');
const nconf = require('nconf');
@@ -14,6 +13,7 @@ const nconf = require('nconf');
const Benchpress = require('benchpressjs');
const mkdirp = require('mkdirp');
const { paths } = require('../src/constants');
const sass = require('../src/utils').getSass();
const app = express();
let server;

View File

@@ -4,11 +4,11 @@ const fs = require('fs');
const os = require('os');
const async = require('async');
const winston = require('winston');
const sass = require('../utils').getSass();
const postcss = require('postcss');
const autoprefixer = require('autoprefixer');
const clean = require('postcss-clean');
const rtlcss = require('rtlcss');
const sass = require('../utils').getSass();
const fork = require('./debugFork');
require('../file'); // for graceful-fs
@@ -158,7 +158,7 @@ Minifier.js.bundle = async function (data, fork) {
};
actions.buildCSS = async function buildCSS(data) {
const scssOutput = sass.compileString(data.source, {
const scssOutput = await sass.compileStringAsync(data.source, {
loadPaths: data.paths,
});