https://github.com/catc/code-splitting-poc
https://github.com/catc/code-splitting-poc
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/catc/code-splitting-poc
- Owner: catc
- Created: 2017-09-20T18:03:49.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-20T20:38:43.000Z (almost 9 years ago)
- Last Synced: 2025-06-16T20:45:10.396Z (about 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Although a module is imported via dynamic imports, webpack doesn't create a separate chunk for it. See:
`src/components/route-a.jsx`:
```js
import(
/* webpackChunkName: "comp-abc" */
/* webpackMode: "lazy" */
'./comp-abc.jsx'
)
```
# Setup & Commands
Switch to node `7.x.x` and install dependencies via `npm install`.
- to run dev:
- `npm run dev`
- navigate to `localhost:8000`
- to build `npm run build` and view files in `assets/`
- to run server `npm run server` and navigate to `localhost:8100` - requires running a build first