diff --git a/.npmignore b/.npmignore index 5143799..94133af 100644 --- a/.npmignore +++ b/.npmignore @@ -13,4 +13,5 @@ __tests__ coverage src *.png +*.jpg .idea diff --git a/README.md b/README.md index 0581783..7620a5b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +# Webpack Flush Chunks [![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg?style=flat-square)](https://gitter.im/faceyspacey/Lobby) +
-# Webpack Flush Chunks +![webpack-flush-chunks](https://raw.githubusercontent.com/faceyspacey/redux-first-router/master/docs/poo.jpg) -> flush webpack chunks for SSR from [React Loadable](https://github.com/thejameskyle/react-loadable), [React Universal Component](https://github.com/faceyspacey/react-universal-component) or similar packages +Use this package server-side to flush webpack chunks from *[React Universal Component](https://github.com/faceyspacey/react-universal-component)* or any package that flushes an array of rendered `moduleIds` or `chunkNames`. ```js -import { flushModuleIds } from 'react-universal-component/server' +import { flushChunkNames } from 'react-universal-component/server' import flushChunks from 'webpack-flush-chunks' const app = ReactDOMServer.renderToString(