-
Notifications
You must be signed in to change notification settings - Fork 16
As a developer I would like the option to add custom webpack rules to be compiled #161
Comments
Thanks for this! On the other hand I like the idea an we discussed something similar a couple of times, to better understand your scenario could you provide some specific use-case of what you would like to alter in the webpack rules? |
sure,
|
As an option, what hold you from creating your own template to support all the needed cases for your developers? |
It prevents a developer from having to maintain a custom oc-template and insure that it is up to date with base while allowing flexibility in configuration. If a user wants to use There SHOULD be a bass template, just maybe make it accept some flexible params. |
I've created a PR here: #162 I would appreciate feedback 😃 |
Just an heads up: as @kmcrawford mistakenly merged #162 and reverted afterward, there is not a PR for this anymore. I'm ok with that as I would like to discuss this further before we attempt a PR. |
I have to agree with @nickbalestra here. Opening up to customisations on the component level is very risky but I see why you may want to do it. Let's take the PostCSS example. Now, that said, if you want to allow the template you use in your registry to do this, I think you should, and that would just need to be a fork and a publish to npm as a different name. Just my 2 cents... 🙏 |
It would be nice to have the ability to add custom rules without effecting the base build and modifying the
webpackConfigurator.js
to meet specific needs of a project.Proposition
package.json
configure the location of config file (not in package.json because it should be able to take vars)oc-template-react-compiler
make check for config file, if there use it, if not ignoredevDependencies
so that they can configure things themselves.The text was updated successfully, but these errors were encountered: