I'm just hoping to create different bundles for different pages, as simply as possible, without using front-end routing (I just want to use Django routing for separate pages)
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I'd suggest doing that in preact.config.js: ``` export default config => { config.entry = { page1: path.resolve(__dirname, 'src/page1.js'), page2: path.resolve(__dirname, 'src/page2.js'), page3: path.resolve(__dirname, 'src/page3.js') } } ```
-
note that you'll be missing the nice export stuff preact-cli does, so your entry modules will need to do something like: import Page1 from './components/Page1'; import { render } from 'preact'; const into = document.getElementById('preact-root'); render(<Page 1 />, into);
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.