An open API service indexing awesome lists of open source software.

https://github.com/catc/code-splitting-poc


https://github.com/catc/code-splitting-poc

Last synced: about 1 month ago
JSON representation

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