Comments (4)
I think a good approach is to:
- Add a
--webpack
option to the CLI to point to a custom config - Automatically look for a
webpack.config.js
from the CLI usingfind-up
as done here in x0 - Use webpack-merge to merge with the built-in config, making sure
mdx-deck/loader
is still used
from mdx-deck.
Yeah, I'll likely add support for custom webpack.config.js
from the CLI and would accept a PR for this
from mdx-deck.
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.
from mdx-deck.
Hey @jxnblk, I'd love to give this a shot. I can see two options for implementing support for custom webpack configs:
- Automatically use a
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. - Replicate Next.js' approach: A custom config file that exports a function which receives the default config as an argument and returns the modified config. Pros: No need to reimplement the default config. Cons: less intuitive.
WDYT? Which approach do you prefer or did you have something completely different in mind?
from mdx-deck.
Related Issues (20)
- Integrating the presentation into existing website causes number of issues
- gatsby-theme-mdx-deck not working
- Running mdx-deck <filename>.mdx constantly forces a repaint in the browser and the recreation of gatsby pages. HOT 10
- Simple create, resize and fill div
- Presenter mode inaccessible in Windows HOT 3
- Infinite loop when using steps HOT 6
- Readme Clarity
- File-Import in 4.1.1 not working
- Can't start mdx-deck on localhost HOT 1
- Still supported/maintained? HOT 8
- Is there a way to run custom javascript on deck load and slid transitions ? HOT 3
- Can't resolve 'mdx-deck/themes' HOT 2
- Is there support for remark plugins?
- Can this be used with Next.Js HOT 2
- Trying to get in touch with you regarding a security issue
- Import partial slide decks? HOT 4
- Upgrade Gatsby to v3? HOT 2
- "Getting Started" steps do not work HOT 4
- Need custom shortcuts
- Not running on Gatsbyjs 4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdx-deck.