Skip to content

Commit 2fff5a5

Browse files
committed
Merge branch 'master' of github.com:webpack-contrib/mini-css-extract-plugin
2 parents 3bf0ffa + 1c94d00 commit 2fff5a5

File tree

231 files changed

+35044
-7506
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+35044
-7506
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
You arrived at this template because you felt none of the other options
88
matched the kind of issue you'd like to report. Please use this opportunity to
9-
tell us about your particular type of issue so we can try to accomodate
9+
tell us about your particular type of issue so we can try to accommodate
1010
similar issues in the future.
1111
1212
PLEASE do note, if you're using this to report an issue already covered by the

.github/workflows/nodejs.yml

Lines changed: 72 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
with:
3030
fetch-depth: 0
3131

32-
- name: Use Node.js ${{ env.node-version }}
32+
- name: Use Node.js ${{ matrix.node-version }}
3333
uses: actions/setup-node@v1
3434
with:
35-
node-version: ${{ env.node-version }}
35+
node-version: ${{ matrix.node-version }}
3636

3737
- name: Use latest NPM
3838
run: sudo npm i -g npm
@@ -80,6 +80,18 @@ jobs:
8080
if: matrix.os == 'windows-latest'
8181
run: npm i -g npm
8282

83+
- name: Get npm cache directory
84+
id: npm-cache
85+
run: |
86+
echo "::set-output name=dir::$(npm config get cache)"
87+
88+
- uses: actions/cache@v1
89+
with:
90+
path: ${{ steps.npm-cache.outputs.dir }}
91+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
92+
restore-keys: |
93+
${{ runner.os }}-node-
94+
8395
- name: Install dependencies
8496
run: npm i
8597

@@ -93,3 +105,61 @@ jobs:
93105
uses: codecov/codecov-action@v1
94106
with:
95107
token: ${{ secrets.CODECOV_TOKEN }}
108+
109+
test2:
110+
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack latest, experimentalUseImportModule
111+
112+
strategy:
113+
matrix:
114+
os: [ubuntu-latest, windows-latest, macos-latest]
115+
node-version: [10.x, 12.x, 14.x]
116+
117+
runs-on: ${{ matrix.os }}
118+
119+
steps:
120+
- name: Setup Git
121+
if: matrix.os == 'windows-latest'
122+
run: git config --global core.autocrlf input
123+
124+
- uses: actions/checkout@v2
125+
126+
- name: Use Node.js ${{ matrix.node-version }}
127+
uses: actions/setup-node@v1
128+
with:
129+
node-version: ${{ matrix.node-version }}
130+
131+
- name: Use latest NPM on ubuntu/macos
132+
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
133+
run: sudo npm i -g npm
134+
135+
- name: Use latest NPM on windows
136+
if: matrix.os == 'windows-latest'
137+
run: npm i -g npm
138+
139+
- name: Get npm cache directory
140+
id: npm-cache
141+
run: |
142+
echo "::set-output name=dir::$(npm config get cache)"
143+
144+
- uses: actions/cache@v1
145+
with:
146+
path: ${{ steps.npm-cache.outputs.dir }}
147+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
148+
restore-keys: |
149+
${{ runner.os }}-node-
150+
151+
- name: Install dependencies
152+
run: npm i
153+
154+
- name: Install webpack latest
155+
run: npm i webpack@latest
156+
157+
- name: Run tests for webpack version latest with experimentalUseImportModule
158+
run: npm run test:coverage -- --ci
159+
env:
160+
EXPERIMENTAL_USE_IMPORT_MODULE: 'true'
161+
162+
- name: Submit coverage data to codecov
163+
uses: codecov/codecov-action@v1
164+
with:
165+
token: ${{ secrets.CODECOV_TOKEN }}

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx commitlint --edit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

CHANGELOG.md

Lines changed: 96 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,113 @@
22

33
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.
44

5-
### [1.4.1](https://github.com/chesscom/mini-css-extract-plugin/compare/v1.4.0...v1.4.1) (2020-11-09)
5+
## [1.6.0](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.5.1...v1.6.0) (2021-04-30)
66

7-
## [1.4.0](https://github.com/chesscom/mini-css-extract-plugin/compare/v1.3.0...v1.4.0) (2020-11-06)
7+
8+
### Features
9+
10+
* added new url support ([#753](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/753)) ([c76a1a1](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/c76a1a16b926e3dc8f6763d940ab6e4eb170c77f))
11+
12+
### [1.5.1](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.5.0...v1.5.1) (2021-04-28)
13+
14+
15+
### Bug Fixes
16+
17+
* compatibility with named export and es5 ([#751](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/751)) ([3be81bb](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/3be81bb4e795fc9295c2c7e7a8bb71de9cead2d0))
18+
19+
## [1.5.0](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.4.1...v1.5.0) (2021-04-17)
20+
21+
22+
### Features
23+
24+
* add experimental support for `importModule`, improve perfomance ([#737](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/737)) ([8471ac2](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/8471ac24dde3d7e874995f8ab4814cc94b4179e1))
25+
26+
### [1.4.1](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.4.0...v1.4.1) (2021-04-07)
27+
28+
29+
### Bug Fixes
30+
31+
* ES5 compatibility ([43e081f](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/43e081f3a2767f3c00a29349a71ad17eca9cc168))
32+
33+
## [1.4.0](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.3.9...v1.4.0) (2021-03-26)
834

935

1036
### Features
1137

12-
* **wp5:** add RTL support for webpack5 runtime modules ([cc2d0db](https://github.com/chesscom/mini-css-extract-plugin/commit/cc2d0db31c9c7b0432b1800426d04b5eb3fb7260))
38+
* added the `emit` option for SSR ([#732](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/732)) ([03b4293](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/03b4293023e85e89abf46a2e42d61ec8684cb318))
39+
40+
### [1.3.9](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.3.8...v1.3.9) (2021-02-25)
41+
42+
43+
### Bug Fixes
44+
45+
* allow consumers to access `CssModule` and `CssDependency` ([#703](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/703)) ([6484345](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/64843452a7c07963637a749bce9628d808694eac))
46+
* allow to use `auto` value with the `publicPath` option ([#709](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/709)) ([1be21d2](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/1be21d29053c32cfec26eb58aa5deabd65069c71))
47+
48+
### [1.3.8](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.3.7...v1.3.8) (2021-02-18)
49+
50+
51+
### Bug Fixes
52+
53+
* deterministic `[contenthash]` ([#702](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/702)) ([2ff8e59](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/2ff8e592e13d54dc87fad4fcf5065136d4610dca))
54+
55+
### [1.3.7](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.3.6...v1.3.7) (2021-02-15)
56+
57+
58+
### Bug Fixes
59+
60+
* compatibility with webpack v5 ([9b6b8b3](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/9b6b8b3a8393a62b7b7a3b38c0c52b694ed51e19))
61+
62+
### [1.3.6](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.3.5...v1.3.6) (2021-02-08)
63+
64+
65+
### Bug Fixes
66+
67+
* do not crash on using `[fullhash]` ([#695](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/695)) ([dbb708c](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/dbb708cf181d8f3d69af11cc15f959f187e38ffa))
68+
69+
### [1.3.5](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.3.4...v1.3.5) (2021-01-28)
70+
71+
72+
### Bug Fixes
73+
74+
* bloated runtime ([#687](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/687)) ([70ce174](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/70ce174941016174bb82ff46c808593a1e1b7e1e))
75+
* hmr runtime on preloaded stylesheet link ([#686](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/686)) ([05e2951](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/05e29514952bf3ff3f30ec33c4bda66999d8486b))
76+
* yarn pnp compatibility ([#688](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/688)) ([05b188a](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/05b188a055ee6663f8d307e99b22c51200fee320))
77+
78+
### [1.3.4](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.3.3...v1.3.4) (2021-01-13)
79+
80+
81+
### Bug Fixes
82+
83+
* `identifier` for `CssModule` ([#677](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/677)) ([117a97a](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/117a97acaa5b37c5183b5b48264d7e524e8f5bc3))
84+
85+
### [1.3.3](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.3.2...v1.3.3) (2020-12-10)
86+
87+
88+
### Bug Fixes
89+
90+
* serializing big strings in sourceMap ([#665](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/665)) ([f7a5e53](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/f7a5e5381ce1d2b822d49b688027d06efec2312d))
91+
92+
### [1.3.2](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.3.1...v1.3.2) (2020-12-04)
93+
94+
95+
### Bug Fixes
96+
97+
* missing auxiliary assets ([#662](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/662)) ([f28c1e1](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/f28c1e115fb9aacbd87e3b1540adb7418a4cc375))
98+
99+
### [1.3.1](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.3.0...v1.3.1) (2020-11-12)
100+
101+
102+
### Bug Fixes
103+
104+
* compatibility with asset modules ([#656](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/656)) ([bea1f4d](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/bea1f4d0c25abc6268b8076305e9879344ff1701))
13105

14106
## [1.3.0](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.2.1...v1.3.0) (2020-11-06)
15107

16108

17109
### ⚠ POTENTIAL BREAKING CHANGE
18110

19-
Options are now validated according to stricter rules - no unknown additional properties. For example, if you have not removed the `hmr` option for the loader when migrating to `mini-css-extract-plugin@1`, you will get an error. Just remove them from your configuration(s). We did this because many developers started making these mistakes.
111+
Options are now validated according to stricter rules - no unknown additional properties. For example, if you have not removed the `hmr` option for the loader when migrating to `mini-css-extract-plugin@1`, you will get an error. Just remove them from your configuration(s). We did this because many developers started making these mistakes.
20112

21113
### Features
22114

0 commit comments

Comments
 (0)