0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-15 12:54:23 +01:00
2024-12-19 14:59:46 +01:00

18 lines
452 B
JavaScript

'use strict'
const fs = require('node:fs')
const path = require('node:path')
const { runSass } = require('sass-true')
module.exports = (filename, { describe, it }) => {
const data = fs.readFileSync(filename, 'utf8')
const TRUE_SETUP = '$true-terminal-output: false; @use "true" as *;'
const sassString = TRUE_SETUP + data
runSass(
{ describe, it, sourceType: 'string' },
sassString,
{ loadPaths: [path.dirname(filename)] }
)
}