From f350eb8ea90e49e74a67d93f017b0c8e53b98521 Mon Sep 17 00:00:00 2001 From: Thomas Baldwin Date: Fri, 8 Feb 2019 15:56:29 -0500 Subject: [PATCH 1/8] Removed async loading of CSS chunks --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index c905bb82..3fe6459d 100644 --- a/src/index.js +++ b/src/index.js @@ -269,6 +269,7 @@ class MiniCssExtractPlugin { mainTemplate.hooks.requireEnsure.tap( pluginName, (source, chunk, hash) => { + /* const chunkMap = this.getCssChunkObject(chunk); if (Object.keys(chunkMap).length > 0) { const chunkMaps = chunk.getChunkMaps(); @@ -388,6 +389,7 @@ class MiniCssExtractPlugin { '}', ]); } + */ return source; } ); From 6d8b1383238ddea608fee5c002332ad4cfe86f91 Mon Sep 17 00:00:00 2001 From: Thomas Baldwin Date: Fri, 8 Feb 2019 16:05:47 -0500 Subject: [PATCH 2/8] chore(release): 0.6.0 --- CHANGELOG.md | 10 ++++++++++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eaff93d0..b71204ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +# [0.6.0](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v0.5.0...v0.6.0) (2019-02-08) + + +### Features + +* added error code to chunk load Error ([#347](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/347)) ([b653641](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/b653641)) + + + # [0.5.0](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v0.4.5...v0.5.0) (2018-12-07) diff --git a/package-lock.json b/package-lock.json index d3a4647e..20eaaa35 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mini-css-extract-plugin", - "version": "0.5.0", + "version": "0.6.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0d4f3dac..3dfa0fc4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mini-css-extract-plugin", - "version": "0.5.0", + "version": "0.6.0", "description": "extracts CSS into separate files", "license": "MIT", "repository": "webpack-contrib/mini-css-extract-plugin", From baa1ecbb07740d535e78a59b93491ccfbd0a7085 Mon Sep 17 00:00:00 2001 From: Thomas Baldwin Date: Fri, 8 Feb 2019 16:11:59 -0500 Subject: [PATCH 3/8] Updated npm package --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3dfa0fc4..9f9e80c2 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "mini-css-extract-plugin", + "name": "mini-css-extract-plugin-async", "version": "0.6.0", "description": "extracts CSS into separate files", "license": "MIT", From 3a2d0709f06d9c50410556f624a36143f9640b01 Mon Sep 17 00:00:00 2001 From: Thomas Baldwin Date: Fri, 8 Feb 2019 16:12:09 -0500 Subject: [PATCH 4/8] chore(release): 0.6.1 --- CHANGELOG.md | 5 +++++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b71204ea..6a647c72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## [0.6.1](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v0.6.0...v0.6.1) (2019-02-08) + + + # [0.6.0](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v0.5.0...v0.6.0) (2019-02-08) diff --git a/package-lock.json b/package-lock.json index 20eaaa35..97230bfd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mini-css-extract-plugin", - "version": "0.6.0", + "version": "0.6.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9f9e80c2..955a23d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mini-css-extract-plugin-async", - "version": "0.6.0", + "version": "0.6.1", "description": "extracts CSS into separate files", "license": "MIT", "repository": "webpack-contrib/mini-css-extract-plugin", From a0bbd9dbb5af3cba4405a104084dd0508f301928 Mon Sep 17 00:00:00 2001 From: Thomas Baldwin Date: Sun, 10 Feb 2019 13:04:03 -0500 Subject: [PATCH 5/8] Added debugging logs --- src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.js b/src/index.js index 3fe6459d..a57a849e 100644 --- a/src/index.js +++ b/src/index.js @@ -269,6 +269,7 @@ class MiniCssExtractPlugin { mainTemplate.hooks.requireEnsure.tap( pluginName, (source, chunk, hash) => { + console.log('Here is the source in requireEnsure:: ', source); /* const chunkMap = this.getCssChunkObject(chunk); if (Object.keys(chunkMap).length > 0) { @@ -397,8 +398,10 @@ class MiniCssExtractPlugin { } getCssChunkObject(mainChunk) { + console.log('Here is the mainChunk:: ', mainChunk); const obj = {}; for (const chunk of mainChunk.getAllAsyncChunks()) { + console.log('here is the individual chunk:: ', chunk); for (const module of chunk.modulesIterable) { if (module.type === MODULE_TYPE) { obj[chunk.id] = 1; From 826811a34aec19bbc0cca0ad349255a8e49ba7e2 Mon Sep 17 00:00:00 2001 From: Thomas Baldwin Date: Sun, 10 Feb 2019 13:05:11 -0500 Subject: [PATCH 6/8] chore(release): 0.6.2 --- CHANGELOG.md | 5 +++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a647c72..2a8fa689 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## [0.6.2](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v0.6.1...v0.6.2) (2019-02-10) + + + ## [0.6.1](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v0.6.0...v0.6.1) (2019-02-08) diff --git a/package-lock.json b/package-lock.json index 97230bfd..c43c5913 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { - "name": "mini-css-extract-plugin", - "version": "0.6.1", + "name": "mini-css-extract-plugin-async", + "version": "0.6.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 955a23d7..eb990a29 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mini-css-extract-plugin-async", - "version": "0.6.1", + "version": "0.6.2", "description": "extracts CSS into separate files", "license": "MIT", "repository": "webpack-contrib/mini-css-extract-plugin", From 0e2804a73dc26ba9511a8d7380492a3732a3e750 Mon Sep 17 00:00:00 2001 From: Thomas Baldwin Date: Mon, 11 Feb 2019 20:33:52 -0500 Subject: [PATCH 7/8] Added option to disable async downloading of CSS --- src/index.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index a57a849e..966a77e9 100644 --- a/src/index.js +++ b/src/index.js @@ -269,8 +269,9 @@ class MiniCssExtractPlugin { mainTemplate.hooks.requireEnsure.tap( pluginName, (source, chunk, hash) => { - console.log('Here is the source in requireEnsure:: ', source); - /* + // if disableAsync option is set, don't fetch css + if (this.options.disableAsync) return null; + const chunkMap = this.getCssChunkObject(chunk); if (Object.keys(chunkMap).length > 0) { const chunkMaps = chunk.getChunkMaps(); @@ -390,7 +391,7 @@ class MiniCssExtractPlugin { '}', ]); } - */ + return source; } ); @@ -398,10 +399,8 @@ class MiniCssExtractPlugin { } getCssChunkObject(mainChunk) { - console.log('Here is the mainChunk:: ', mainChunk); const obj = {}; for (const chunk of mainChunk.getAllAsyncChunks()) { - console.log('here is the individual chunk:: ', chunk); for (const module of chunk.modulesIterable) { if (module.type === MODULE_TYPE) { obj[chunk.id] = 1; From cbb28930ae19c68c46354e1f9692168a8bdc7c0e Mon Sep 17 00:00:00 2001 From: Thomas Baldwin Date: Mon, 11 Feb 2019 20:34:00 -0500 Subject: [PATCH 8/8] chore(release): 0.6.3 --- CHANGELOG.md | 5 +++++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a8fa689..9768ff3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## [0.6.3](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v0.6.2...v0.6.3) (2019-02-12) + + + ## [0.6.2](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v0.6.1...v0.6.2) (2019-02-10) diff --git a/package-lock.json b/package-lock.json index c43c5913..80e1330e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mini-css-extract-plugin-async", - "version": "0.6.2", + "version": "0.6.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index eb990a29..c9cca5b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mini-css-extract-plugin-async", - "version": "0.6.2", + "version": "0.6.3", "description": "extracts CSS into separate files", "license": "MIT", "repository": "webpack-contrib/mini-css-extract-plugin",