Skip to content

Commit 0bde50d

Browse files
chore(defaults): update (webpack-contrib#426)
1 parent 4ad3373 commit 0bde50d

File tree

143 files changed

+2122
-1431
lines changed

Some content is hidden

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

143 files changed

+2122
-1431
lines changed

.eslintignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
/node_modules
1+
/coverage
22
/dist
3+
/node_modules
4+
/test/fixtures
35
/test/cases/*/expected
46
/test/js
5-
/test/manual

.eslintrc.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
module.exports = {
22
root: true,
33
parser: 'babel-eslint',
4-
plugins: ['prettier'],
5-
extends: ['@webpack-contrib/eslint-config-webpack'],
6-
rules: {
7-
'prettier/prettier': ['error'],
8-
},
4+
extends: ['@webpack-contrib/eslint-config-webpack', 'prettier'],
95
};

.github/CONTRIBUTING.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,21 @@ module. Thankfully, Github provides a means to do this. Add a dependency to the
140140
```json
141141
{
142142
"devDependencies": {
143-
"${package}": "webpack-contrib/${package}#{id}/head"
143+
"mini-css-extract-plugin": "webpack-contrib/mini-css-extract-plugin#{id}/head"
144144
}
145145
}
146146
```
147147

148148
Where `{id}` is the # ID of your Pull Request.
149149

150+
## Contributor License Agreement
151+
152+
When submitting your contribution, a CLA (Contributor License Agreement) bot will come by to verify that you signed the [CLA](https://cla.js.foundation/webpack-contrib/mini-css-extract-plugin).
153+
If it is your first time, it will link you to the right place to sign it.
154+
However, if you have committed your contributions using an email that is not the same as your email used on GitHub, the CLA bot can't accept your contribution.
155+
156+
Run `git config user.email` to see your Git email, and verify it with [your GitHub email](https://github.com/settings/emails).
157+
150158
## Thanks
151159

152-
For your interest, time, understanding, and for following this simple guide.
160+
For your interest, time, understanding, and for following this simple guide.

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
open_collective: webpack

.github/ISSUE_TEMPLATE/BUG.md

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 🐛 Bug Report
33
about: Something went awry and you'd like to tell us about it.
4-
54
---
65

76
<!--
@@ -15,11 +14,11 @@ about: Something went awry and you'd like to tell us about it.
1514
Head to StackOverflow or https://gitter.im/webpack/webpack.
1615
-->
1716

18-
* Operating System:
19-
* Node Version:
20-
* NPM Version:
21-
* webpack Version:
22-
* mini-css-extract-plugin Version:
17+
- Operating System:
18+
- Node Version:
19+
- NPM Version:
20+
- webpack Version:
21+
- mini-css-extract-plugin Version:
2322

2423
### Expected Behavior
2524

@@ -32,13 +31,13 @@ about: Something went awry and you'd like to tell us about it.
3231
### Code
3332

3433
```js
35-
// webpack.config.js
36-
// If your code blocks are over 20 lines, please paste a link to a gist
37-
// (https://gist.github.com).
34+
// webpack.config.js
35+
// If your code blocks are over 20 lines, please paste a link to a gist
36+
// (https://gist.github.com).
3837
```
3938

4039
```js
41-
// additional code, HEY YO remove this block if you don't need it
40+
// additional code, HEY YO remove this block if you don't need it
4241
```
4342

4443
### How Do We Reproduce?
@@ -48,4 +47,4 @@ about: Something went awry and you'd like to tell us about it.
4847
4948
If your webpack config is over 50 lines long, please provide a URL to a repo
5049
for your beefy 🍖 app that we can use to reproduce.
51-
-->
50+
-->

.github/ISSUE_TEMPLATE/DOCS.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 📚 Documentation
33
about: Are the docs lacking or missing something? Do they need some new 🔥 hotness? Tell us here.
4-
54
---
65

76
<!--
@@ -26,5 +25,4 @@ Documentation Is:
2625

2726
### Please Explain in Detail...
2827

29-
30-
### Your Proposal for Changes
28+
### Your Proposal for Changes

.github/ISSUE_TEMPLATE/FEATURE.md

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: ✨ Feature Request
33
about: Suggest an idea for this project
4-
54
---
65

76
<!--
@@ -15,14 +14,12 @@ about: Suggest an idea for this project
1514
Head to StackOverflow or https://gitter.im/webpack/webpack.
1615
-->
1716

18-
* Operating System:
19-
* Node Version:
20-
* NPM Version:
21-
* webpack Version:
22-
* mini-css-extract-plugin Version:
17+
- Operating System:
18+
- Node Version:
19+
- NPM Version:
20+
- webpack Version:
21+
- mini-css-extract-plugin Version:
2322

2423
### Feature Proposal
2524

26-
27-
28-
### Feature Use Case
25+
### Feature Use Case
+6-12
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 🔧 Modification Request
33
about: Would you like something work differently? Have an alternative approach? This is the template for you.
4-
54
---
65

76
<!--
@@ -15,19 +14,14 @@ about: Would you like something work differently? Have an alternative approach?
1514
Head to StackOverflow or https://gitter.im/webpack/webpack.
1615
-->
1716

18-
* Operating System:
19-
* Node Version:
20-
* NPM Version:
21-
* webpack Version:
22-
* mini-css-extract-plugin Version:
23-
17+
- Operating System:
18+
- Node Version:
19+
- NPM Version:
20+
- webpack Version:
21+
- mini-css-extract-plugin Version:
2422

2523
### Expected Behavior / Situation
2624

27-
28-
2925
### Actual Behavior / Situation
3026

31-
32-
33-
### Modification Proposal
27+
### Modification Proposal

.github/ISSUE_TEMPLATE/SUPPORT.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
22
name: 🆘 Support, Help, and Advice
33
about: 👉🏽 Need support, help, or advice? Don't open an issue! Head to StackOverflow or https://gitter.im/webpack/webpack.
4-
54
---
65

76
Hey there! If you need support, help, or advice then this is not the place to ask.
87
Please visit [StackOverflow](https://stackoverflow.com/questions/tagged/webpack)
9-
or [the Webpack Gitter](https://gitter.im/webpack/webpack) instead.
8+
or [the Webpack Gitter](https://gitter.im/webpack/webpack) instead.

.prettierignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/coverage
2+
/dist
3+
/node_modules
4+
/test/fixtures
5+
/test/cases/*/expected
6+
/test/js
7+
CHANGELOG.md

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ With the `moduleFilename` option you can use chunk data to customize the filenam
349349

350350
```javascript
351351
const miniCssExtractPlugin = new MiniCssExtractPlugin({
352-
moduleFilename: ({ name }) => `${name.replace('/js/', '/css/')}.css`
353-
})
352+
moduleFilename: ({ name }) => `${name.replace('/js/', '/css/')}.css`,
353+
});
354354
```
355355

356356
#### Long Term Caching

lint-staged.config.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
module.exports = {
2-
ignore: ['package-lock.json'],
3-
linters: {
4-
'*.js': ['eslint --fix', 'git add'],
5-
},
2+
'*.js': ['prettier --write', 'eslint --fix', 'git add'],
3+
'*.{json,md,yml,css}': ['prettier --write', 'git add'],
64
};

0 commit comments

Comments
 (0)