-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add outputDir config option to emotion/babel #180
Comments
Any status on this? I stumbled upon emotion when researching css in js frameworks and emotion looks the most promising (in terms of package size, dependencies and features). This static extraction is crucial to my production build process. |
@vladnicula are you doing server side rendering or client only rendering? |
@tkh44 I'm looking to do both. The current project I'm working on is only using client side rendering. Would be nice to have support for both in the end. Btw, opened this #396, it works for my client side project and for my server side bundling in combination with weback extract text plugin. Could not write a proper test because the fs tests are fishy. |
I left some comments that may help you out. |
Closed via #583 |
As per #167, I'm using babel-cli to compile packages down into targeted browser ranges and es* versions. Since we can not access the --out-dir config option from babel-cli in babel plugins, the next best option would be to allow an option that could be used as such:
We could then prepend this directory to the output filename when the file is written and npm scripts could use it as such, with all files being put in the right place:
The text was updated successfully, but these errors were encountered: