Closed Abhikumar98 closed 2 years ago
I have no plan to add support for LESS or CSS modules in the short term.
pls support ".less,scss" etc files
I have no plan to add support for LESS or CSS modules in the short term.
what would be the best workaround?
Edit:
postcss
works almost without additional configuration.json
s that export processesFound much easier option. Used esbuild-css-modules-plugin
found in https://github.com/esbuild/community-plugins
Here's the link to the plugin: https://github.com/indooorsman/esbuild-css-modules-plugin#readme
Essentially, just install with
npm i -D esbuild-css-modules-plugin
And then use according to https://tsup.egoist.sh/#custom-esbuild-plugin-and-options:
import { defineConfig } from 'tsup'
export default defineConfig({
// ...
esbuildPlugins: [
cssModulesPlugin()
],
})
got it.thx
@Manonicu btw they have less
plugin on that page too, maybe that helps you!
you can use https://www.npmjs.com/package/esbuild-plugin-less
import { defineConfig } from 'tsup';
import { lessLoader } from 'esbuild-plugin-less';
export default defineConfig({
esbuildPlugins: [lessLoader()],
});
I'm using tsup in a component package in my monorepo. This component package requires less support and I'm unable to use less files in this
How can I add less loader in config?