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

Allow optional SCSS support or custom PostCSS plugins #103

Open
romannurik opened this issue May 14, 2022 · 1 comment
Open

Allow optional SCSS support or custom PostCSS plugins #103

romannurik opened this issue May 14, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@romannurik
Copy link

I most miss the ability to nest rules... It'd be nice to either support modules like postcss-nested (or whatever is defined in postcss.config.js) or SCSS support as an option.

@yuanqing yuanqing added the enhancement New feature or request label Jun 6, 2022
@romannurik
Copy link
Author

romannurik commented Jun 29, 2022

I think I found a hidden configuration option:

  1. Create a file named build-figma-plugin.ui.js
  2. Put the following contents in the file (and install esbuild-sass-plugin):
const { sassPlugin } = require('esbuild-sass-plugin');

module.exports = config => {
  config.plugins.push(sassPlugin());
  return config;
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants