-
Notifications
You must be signed in to change notification settings - Fork 77
Closed
Description
// styleProcessors/index.ts
const less = {
render(
source: string,
map: any | null,
options: any
): StylePreprocessorResults {
const nodeLess = require('less')
let result: any
let error: Error | null = null
nodeLess.render(
source,
{ syncImport: true },
(err: Error | null, output: any) => {
error = err
result = output
}
)
if (error) return { code: '', errors: [error] }
if (map) {
return {
code: result.css.toString(),
map: merge(map, result.map),
errors: []
}
}
return { code: result.css.toString(), errors: [] }
}
}
Here, this options
is not used in nodeLess.render
, when i want to assign the paths
param in render
function.
Metadata
Metadata
Assignees
Labels
No labels