Add Express.js support
See original GitHub issueWhat we do under the hood is emitting a new asset from webpack at carte-blanche/index.html
. (or whatever you specify in the dest
option) This means that if you’re using express.js for routing, users will never find the Carte Blanche because express.js sends back a 404.
We should be exposing an easy-to-use route which redirects to Carte Blanche. I’ve never done this before, so maybe there’s a better way, but this seems like the nicest solution at the moment:
import { carteBlancheRoute } from 'carte-blanche';
/* … */
app.get('/carte-blanche/', carteBlancheRoute);
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Installing - Express.js
Enter app.js , or whatever you want the name of the main file to be. If you want it to be index.js ,...
Read more >express - npm
Fast, unopinionated, minimalist web framework. Latest version: 4.18.2, last published: 3 months ago. Start using express in your project by ...
Read more >How to setup Express.js in Node.js - Robin Wieruch
A Node.js with Express tutorial to learn how to setup a Node.js application step by step from scratch ...
Read more >How to Install Express JS using NPM (Step-By-Step)
Express JS Installation on a Windows Machine · Step 2 - Select the Windows installer suitable for your system (32-bit or 64-bit) ·...
Read more >Setting up a Node development environment - MDN Web Docs
Adding dependencies · First create a directory for your new application and navigate into it: · Use the npm init command to create...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi! It sounds like this overlaps with the request I have:
/components
, which is part of our application’s routes.It sounds like this is possible, based on the internals I took a cursory look at.
Is this issue for the same feature?
Done with v0.2! 🎉