Skip to content

Commit

Permalink
docs: fix webpack version (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jul 20, 2021
1 parent 21984a0 commit f6101a4
Show file tree
Hide file tree
Showing 9 changed files with 727 additions and 993 deletions.
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commitlint --edit $1
npx --no-install commitlint --edit $1
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
npx --no-install lint-staged
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

This plugin extracts CSS into separate files. It creates a CSS file per JS file which contains CSS. It supports On-Demand-Loading of CSS and SourceMaps.

It builds on top of a new webpack v4 feature (module types) and requires webpack 4 to work.
It builds on top of a new webpack v5 feature and requires webpack 5 to work.

Compared to the extract-text-webpack-plugin:

Expand Down
1,698 changes: 715 additions & 983 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.23.4",
"file-loader": "^6.2.0",
"husky": "^6.0.0",
"husky": "^7.0.0",
"jest": "^27.0.6",
"jsdom": "^16.5.1",
"lint-staged": "^11.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ __webpack_require__.r(__webpack_exports__);
/******/ }
/******/ if(fulfilled) {
/******/ deferred.splice(i--, 1)
/******/ result = fn();
/******/ var r = fn();
/******/ if (r !== undefined) result = r;
/******/ }
/******/ }
/******/ return result;
Expand Down Expand Up @@ -166,6 +167,6 @@ __webpack_require__.r(__webpack_exports__);

})();

__webpack_require__.O();
__webpack_exports__ = __webpack_require__.O(__webpack_exports__);
/******/ })()
;
5 changes: 3 additions & 2 deletions test/cases/dependOn/expected/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ __webpack_require__.r(__webpack_exports__);
/******/ }
/******/ if(fulfilled) {
/******/ deferred.splice(i--, 1)
/******/ result = fn();
/******/ var r = fn();
/******/ if (r !== undefined) result = r;
/******/ }
/******/ }
/******/ return result;
Expand Down Expand Up @@ -148,6 +149,6 @@ __webpack_require__.r(__webpack_exports__);

})();

__webpack_require__.O();
__webpack_exports__ = __webpack_require__.O(__webpack_exports__);
/******/ })()
;
3 changes: 2 additions & 1 deletion test/cases/runtime/expected/runtime~main.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
/******/ }
/******/ if(fulfilled) {
/******/ deferred.splice(i--, 1)
/******/ result = fn();
/******/ var r = fn();
/******/ if (r !== undefined) result = r;
/******/ }
/******/ }
/******/ return result;
Expand Down

0 comments on commit f6101a4

Please sign in to comment.