Skip to content

Commit 062eabb

Browse files
committed
Replace minimatch with micromatch
1 parent e9fab28 commit 062eabb

File tree

4 files changed

+460
-9
lines changed

4 files changed

+460
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Latest version of this document will always be available on https://github.com/S
77
## [Unreleased]
88
### Changed
99
- Replace Bluebird with `p-each-series`
10+
- Replace `minimatch` with `micromatch`
1011

1112
## [2.1.2] - 2017-09-15
1213
### Fixes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"homepage": "https://github.com/SimenB/add-asset-html-webpack-plugin#readme",
4040
"dependencies": {
4141
"globby": "^6.1.0",
42-
"minimatch": "^3.0.4",
42+
"micromatch": "^3.1.3",
4343
"p-each-series": "^1.0.0"
4444
},
4545
"devDependencies": {

src/addAllAssetsToCompilation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from 'path';
22
import crypto from 'crypto';
33
import pEachSeries from 'p-each-series';
4-
import minimatch from 'minimatch';
4+
import micromatch from 'micromatch';
55
import handleUrl from './handleUrl';
66

77
function ensureTrailingSlash(string) {
@@ -56,7 +56,7 @@ async function addFileToAssets(
5656

5757
if (fileFilters.length > 0) {
5858
const shouldSkip = !fileFilters.some(file =>
59-
minimatch(htmlPluginData.outputName, file)
59+
micromatch.isMatch(htmlPluginData.outputName, file)
6060
);
6161

6262
if (shouldSkip) {

0 commit comments

Comments
 (0)