Skip to content

Commit 537ead6

Browse files
committed
fix($bump): updated tests screenshot + added .codeclimate.yml
1 parent 7ff389d commit 537ead6

File tree

3 files changed

+38
-6
lines changed

3 files changed

+38
-6
lines changed

.codeclimate.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
languages:
2+
JavaScript: true
3+
4+
engines:
5+
duplication:
6+
enabled: true
7+
config:
8+
languages:
9+
- javascript:
10+
fixme:
11+
enabled: true
12+
eslint:
13+
enabled: true
14+
config:
15+
config: .eslintrc.js
16+
checks:
17+
import/no-unresolved:
18+
enabled: false
19+
import/extensions:
20+
enabled: false
21+
22+
ratings:
23+
paths:
24+
- "src/**"
25+
26+
exclude_paths:
27+
- "docs/"
28+
- "dist/"
29+
- "flow-typed/"
30+
- "node_modules/"
31+
- ".vscode/"
32+
- ".eslintrc.js"
33+
- "**/*.snap"

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ res.send(`
5050
${styles}
5151
</head>
5252
<body>
53-
${styles}
5453
<div id="root">${app}</div>
5554
${js}
5655
</body>
@@ -249,7 +248,7 @@ deep control of the amount of bytes you send in your initial request while takin
249248
Until now, the best you could do is split your app into chunks, but then additional requests on the client were needed
250249
to get those chunks; and then on top of that the promise of server-side rendering was lost.
251250

252-
> Note: if you require a less automated approach where you're given just the stylesheets and scripts corresponding to dynamic chunks (e.g. not `main.js`), see `flushFiles` in the [the low-level API section](#low-level-api-flush-files).
251+
> Note: if you require a less automated approach where you're given just the stylesheets and scripts corresponding to dynamic chunks (e.g. not `main.js`), see `flushFiles` in the [the low-level API section](#low-level-api-flushfiles).
253252
254253
## Options API:
255254

@@ -791,9 +790,9 @@ It should be clear by now that the main work in using `webpack-flush-chunks` is
791790
webpack configs. It's therefore extremely important that you're armed with the precise boilerplates for the route you're taking. Here they are:
792791
793792
- **[Universal Webpack Boilerplate](https://github.com/faceyspacey/webpack-flush-chunks-boilerplate-webpack)**
794-
- **[Universal Webpack Boilerplate (using chunkNames + magic comments)](https://github.com/faceyspacey/webpack-flush-chunks-boilerplate-webpack)**
795-
- [Babel Boilerplate](https://github.com/faceyspacey/webpack-flush-chunks-boilerplate-webpack)
796-
- [Babel Boilerplate (using chunkNames + magic comments)](https://github.com/faceyspacey/webpack-flush-chunks-boilerplate-webpack)
793+
- **[Universal Webpack Boilerplate (using chunkNames + magic comments)](https://github.com/faceyspacey/webpack-flush-chunks-boilerplate-webpack-chunknames)**
794+
- [Babel Boilerplate](https://github.com/faceyspacey/webpack-flush-chunks-boilerplate-babel)
795+
- [Babel Boilerplate (using chunkNames + magic comments)](https://github.com/faceyspacey/webpack-flush-chunks-boilerplate-babel-chunknames)
797796
798797
After checking out the above boilerplates, clicking around their files, and running the different setups (development, production, babel server, etc), how to use *Webpack Flush Chunks* should make sense,
799798
and you should have a fool-proof place to start from.
@@ -820,7 +819,7 @@ opinion.
820819
821820
822821
## Low-level API: `flushFiles`
823-
For advanced users that want all files flushed (`.js`, `.css` or whatever else might be in there) and without named entry chunks (such as `bootstrap`, `vendor`, and `main`), here you go:
822+
For advanced users that want access to all files flushed (`.js`, `.css` or whatever else might be in there) and without named entry chunks you already know (such as `bootstrap`, `vendor`, and `main`), here you go:
824823
825824
```js
826825
import { flushChunkNames } from 'react-universal-component/server'

tests-screenshot.png

-5.83 KB
Loading

0 commit comments

Comments
 (0)