-
Notifications
You must be signed in to change notification settings - Fork 770
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
Expose rollup config for custom plugins #472
Comments
You already have this option. Just declare an array named "plugins" in the config file. Each item from the array is a plugin. You can find the interface here: https://github.com/ionic-team/stencil/blob/master/src/declarations/plugin.ts |
Would be great have some doc's on that 👍 |
There you go. A minimal example of a plugin converting postcss files to css files using cssnext plugin:
|
Ah, yes 😅I don't believe this exposes Rollup though. It'd be nice to be able to use the existing rollup plugins |
Okay, it seems like the plugins list only transforms sass files at this point |
Hello @mlynch, Please have a look here: https://github.com/bfmatei/stencil-boilerplate/tree/develop Hints:
|
@bfmatei yes, I see it. The plugins are only called for Sass files right now. I need to run a transform on |
Sorry mate, i missed the part with style files only (hint: it triggers for postcss files for example, not just sass). I just checked with ts and tsx files and you are right :). |
Hi, why would this be closed without a resolution or a reason for closing? |
@nirlanka - it was closed via pull request. Click on the link right above your comment. That is a reference automatically created by GitHub when it auto-closes an issue that is linked in a specific way with a pull request. |
I'd love to be able to use, say, a rollup replacement plugin for string replace. Can we somehow expose the rollup config to users to add whatever they fancy?
The text was updated successfully, but these errors were encountered: