Skip to content

Commit 0d7b609

Browse files
docs(README): Attempting to hide old docs
Testing collapsable summery block in order to hide the old documentation during beta/i can finish updating it
1 parent bcaa0e4 commit 0d7b609

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ NOTE: We have aligned out loader implementation to be the same as `mini-css-extr
6161
**If you already use `mini-css-extract-plugin`, then you can just change the `require` statement - its that easy**
6262

6363

64+
**DONT USE THIS INSTALL CMD IF YOU ARE BETA TESTING:**
6465
```
6566
yarn add --dev extract-css-chunks-webpack-plugin
6667
```
@@ -96,7 +97,7 @@ module.exports = {
9697

9798

9899

99-
#### What about Webpack 3?
100+
### What about Webpack 3?
100101
This is a breaking change. The entire loader has been fundamentally rewritten specifically for Webpack 4. Aiming to support our existing user base, allowing them to upgrade their infrastructure to support Webpack 4 based universally code-split server-side rendered react applications.
101102

102103
There have been some challenges along the way since the release of webpack 4. Ultimately the only remaining hurdle is code split, async style loading.
@@ -106,15 +107,15 @@ If you do need Webpack 3, make sure to stick with the latest `v2.x.x` release. `
106107

107108

108109

109-
Like `extract-text-webpack-plugin`, but creates multiple css files (one per chunk). Then, as part of server side rendering, you can deliver just the css chunks needed by the current request. The result is the most minimal CSS initially served compared to emerging "render path" solutions.
110-
111-
For a demo, `git clone`: [universal-demo](https://github.com/faceyspacey/universal-demo)
112-
113110
*Note: this is a companion package to:*
114111
- [webpack-flush-chunks](https://github.com/faceyspacey/webpack-flush-chunks)
115112
- [react-universal-component](https://github.com/faceyspacey/react-universal-component)
116113
- [babel-plugin-universal-import](https://github.com/faceyspacey/babel-plugin-universal-import) ***or*** [babel-plugin-dual-import](https://github.com/faceyspacey/babel-plugin-dual-import)
117114

115+
<details><summary>See Old Docs</summary>
116+
Like `extract-text-webpack-plugin`, but creates multiple css files (one per chunk). Then, as part of server side rendering, you can deliver just the css chunks needed by the current request. The result is the most minimal CSS initially served compared to emerging "render path" solutions.
117+
118+
For a demo, `git clone`: [universal-demo](https://github.com/faceyspacey/universal-demo)
118119

119120
## Recommended Installation
120121
```
@@ -343,3 +344,4 @@ We use [commitizen](https://github.com/commitizen/cz-cli), so run `npm run cm` t
343344
## More from FaceySpacey in Reactlandia
344345
- [redux-first-router](https://github.com/faceyspacey/redux-first-router). It's made to work perfectly with *Universal*. Together they comprise our *"frameworkless"* Redux-based approach to what Next.js does (splitting, SSR, prefetching, and routing). *People are lovin it by the way* 😎
345346

347+
</details>

test/manual/src/initial.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.initial-css {
2-
background: blue;
2+
background: lightgreen;
33
}
44

test/manual/webpack.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ const config = {
1111
rules: [
1212
{
1313
test: /\.css$/,
14+
1415
use: [
15-
Self.loader,
16+
{
17+
loader: Self.loader,
18+
},
1619
'css-loader',
1720
],
1821
},

0 commit comments

Comments
 (0)