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

feat: add support for type: 'local-css' #173

Merged
merged 2 commits into from
Mar 7, 2024
Merged

Conversation

kohlmannj
Copy link
Contributor

@kohlmannj kohlmannj commented Feb 29, 2024

Greetings!

I've been experimenting with esbuild and esbuild-plugin-sass, and I wanted a way to compile "Sass module" files (*.module.scss) then leverage esbuild's built-in CSS processing features, as opposed to using PostCSS and postcss-modules.

I think I've got just that here in this PR:

The plugin's type option now accepts the string 'local-css'. This is very similar to type: 'css' in that, when using type: 'local-css', the plugin simply compiles the Sass file and then passes the rest off to esbuild with the appropriate loader specified (i.e. type: 'local-css' → use the local-css loader).

I've also updated the README, added a new fixture project test/fixture/local-css/ and a new e2e unit test.

Cheers,
Joe

@kohlmannj kohlmannj changed the title feat: add support for type: ‘local-css’ feat: add support for type: 'local-css' Feb 29, 2024
@kohlmannj
Copy link
Contributor Author

Gently nudging this one! Thanks and no worries, just wanted to make contact 🙇🏼‍♂️

@glromeo
Copy link
Owner

glromeo commented Mar 6, 2024 via email

@kohlmannj
Copy link
Contributor Author

Ah, no worries, @glromeo, I didn't know! Please take your time, and thanks again ✨

@glromeo
Copy link
Owner

glromeo commented Mar 7, 2024

This is the most professional contribution I've seen so far... A very big thank you for it!

@glromeo glromeo merged commit 02fc7fb into glromeo:main Mar 7, 2024
1 check passed
@kohlmannj
Copy link
Contributor Author

@glromeo My turn for a delayed reply 😅 🤦🏼‍♂️ You are very welcome! Glad to contribute 🙇🏼‍♂️ ✨

@kohlmannj
Copy link
Contributor Author

Oh, at your leisure, a new release with this feature would be much appreciated 😊 Once again, no rush! Thanks @glromeo!

@glromeo
Copy link
Owner

glromeo commented Mar 13, 2024 via email

@kohlmannj
Copy link
Contributor Author

Ah, no worries. Really appreciate the release!

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

Successfully merging this pull request may close these issues.

3 participants