Skip to content

Commit 999fa60

Browse files
chore(general): General housekeeping and file removal
removing old JS files from the previous implementation, added yarn, cleaned up package deps a little
1 parent 3ea7666 commit 999fa60

File tree

5 files changed

+9038
-39
lines changed

5 files changed

+9038
-39
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@
2323
> **HEADLINES (May 2018): Now Independently supports Webpack 4:**
2424
Yep that's right. The universal family is now fully Webpack 4. Thank you to all our users for your loyalty and patience! If you love Universal, then you are gonna fall head over heels when we bring out the main course!
2525

26-
27-
> **UPDATE (July 7th):** [babel-plugin-dual-import](https://github.com/faceyspacey/babel-plugin-dual-import) is now required to asynchronously import both css + js. *Much Faster Builds!* You likely want to read [its intro article](https://medium.com/@faceyspacey/webpacks-import-will-soon-fetch-js-css-here-s-how-you-do-it-today-4eb5b4929852).
28-
29-
> **UPDATE (July 26th):** [babel-plugin-universal-import](https://github.com/faceyspacey/babel-plugin-universal-import) is what to use if you're using *React Universal Component*.
30-
3126
So... why did we rebuild `extract-css-chunks`? What does it offer?
3227

3328
Its got all the goodness of `mini-css-extract-plugin` but with 2 gleaming, sought after benefits.
@@ -47,6 +42,16 @@ Additionally, if you are already a user of the universal family -- we will be wa
4742

4843
The functionality is still available to you via chunk flushing, and it can come in super handy when needing to easily resolve style assets as urls that might need to be passed to a third party.
4944

45+
46+
#BETA TESTING WEBPACK 4
47+
48+
If you want to test this alpha branch, which is currently not published to the NPM registry.
49+
50+
Add the following to your package.json file, then `npm i`
51+
52+
"extract-css-chunks-webpack-plugin": "git+ssh://[email protected]/zackljackson/extract-css-chunks-webpack-plugin.git#webpack-4",
53+
54+
5055
##Webpack 4 Standalone Installation:
5156

5257
If you are just looking for something that works like `mini-css-extract-plugin` but with HMR. Then look no further
@@ -55,6 +60,7 @@ NOTE: We have aligned out loader implementation to be the same as `mini-css-extr
5560

5661
**If you already use `mini-css-extract-plugin`, then you can just change the `require` statement - its that easy**
5762

63+
5864
```
5965
yarn add --dev extract-css-chunks-webpack-plugin
6066
```

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ module.exports = {
1010
'<rootDir>/test/js',
1111
],
1212
};
13+

package-lock.json

Lines changed: 48 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
"lint": "eslint --cache --fix src test",
1919
"prebuild": "npm run clean",
2020
"prepublish": "npm run build",
21-
"release": "standard-version",
22-
"release:ci": "conventional-github-releaser -p angular",
23-
"release:validate": "commitlint --from=$(git describe --tags --abbrev=0) --to=$(git rev-parse HEAD)",
2421
"security": "nsp check",
2522
"test": "jest",
2623
"test:watch": "jest --watch",
@@ -34,13 +31,12 @@
3431
"cm": "git-cz",
3532
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
3633
"travis": "npm run cover -- --report lcovonly",
37-
"prepack": "npm i && rm -rf ./node_modules"
34+
"prepack": "npm i yarn && yarn && rm -rf ./node_modules"
3835
},
3936
"peerDependencies": {
4037
"webpack": "^4.4.0"
4138
},
4239
"dependencies": {
43-
"@webpack-contrib/schema-utils": "^1.0.0-beta.0",
4440
"loader-utils": "^1.1.0",
4541
"lodash": "^4.17.5",
4642
"normalize-url": "^1.9.1",

0 commit comments

Comments
 (0)