Currently, cli.js contains setup for webpack.
If someone want to add extra remark mdPlugins or webpack loaders, user may need to modify cli.js manually.
Do you consider to consider options to allow users add extra mdPlugins or webpack loaders?
Would love this as well, this is necessary for adding typescript support.
For an implementation example, see how https://github.com/pedronauck/docz implemented support for a typescript: true flag in their configuration as well as custom webpack loader options.
Yeah, I'll likely add support for custom webpack.config.js from the CLI and would accept a PR for this
Hey @jxnblk, I'd love to give this a shot. I can see two options for implementing support for custom webpack configs:
webpack.config.js file if it exists. Pros: easy to use, very flexible. Cons: Overrides default webpack config fully, so the default config has to be reimplemented & kept up to date.WDYT? Which approach do you prefer or did you have something completely different in mind?
I think a good approach is to:
--webpack option to the CLI to point to a custom configwebpack.config.js from the CLI using find-up as done here in x0mdx-deck/loader is still used
Most helpful comment
I think a good approach is to:
--webpackoption to the CLI to point to a custom configwebpack.config.jsfrom the CLI usingfind-upas done here in x0mdx-deck/loaderis still used