-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Labels
Description
To reproduce:
import { execSync } from 'node:child_process';
execSync(
'lessc --clean-css="--s1 --advanced --compatibility=ie8" index.less style.css',
{ stdio: 'inherit' },
);Current behavior:
It seems that less cannot find clean-css.
Unable to load plugin clean-css please make sure that it is installed under or at the same level as less
Expected behavior:
Expected that less would find clean-css.
Environment information:
lessversion:4.4.1nodejsversion:v22.15.0operating system:macos 14.6.1 (23G93)yarnversion:4.9.1less-plugin-clean-cssversion:1.6.0clean-cssversion:5.3.3
Additional context
- packages installed as dev deps (
yarn add -D) in yarn workspace using pnp - script is run with
yarn dotenvx run tsx ./script.ts
dosubot