Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize less instance #446

Open
elado opened this issue May 23, 2023 · 0 comments
Open

Customize less instance #446

elado opened this issue May 23, 2023 · 0 comments

Comments

@elado
Copy link

elado commented May 23, 2023

Would be great if I could pass in a specific less instance to control the instance used here:

let { css, map, imports } = await pify(less.render.bind(less))(code, {

Currently, it's loaded relatively to the file with the plugin module, not the project, and in a monorepo with node_modules hoisting this can use a different version than anticipated.

import less from 'less';

...
postcss({
  use: {
    less: {
      less,
    }
  }
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant