Skip to content

Commit 6e75ebe

Browse files
committed
Merge remote-tracking branch 'upstream/master' into gp/mime-content-type
2 parents 5fd4489 + 8e54af2 commit 6e75ebe

File tree

9 files changed

+1518
-2552
lines changed

9 files changed

+1518
-2552
lines changed

.travis.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ jobs:
55
include:
66
- stage: Lint
77
env: SCRIPT=lint
8-
node_js: 'stable'
8+
node_js: 6
99
- &test
1010
stage: Test
1111
env: SCRIPT=test
12-
node_js: 'stable'
12+
node_js: 6
1313
- <<: *test
14-
node_js: 'lts/*'
14+
node_js: 8
1515
- <<: *test
16-
node_js: 6
16+
node_js: 10
17+
- <<: *test
18+
node_js: 11
1719

1820
script: npm run $SCRIPT
1921

CHANGELOG.md

+28-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,38 @@
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-
# [3.4.0](https://github.com/webpack/webpack-dev-middleware/compare/v3.3.0...v3.4.0) (2018-09-24)
5+
<a name="3.5.2"></a>
6+
## [3.5.2](https://github.com/webpack/webpack-dev-middleware/compare/v3.5.1...v3.5.2) (2019-02-06)
67

78

89
### Bug Fixes
910

10-
* **index:** don't modify the default behavior for `unhandledRejection` ([#340](https://github.com/webpack/webpack-dev-middleware/issues/340)) ([f0a8e3e](https://github.com/webpack/webpack-dev-middleware/commit/f0a8e3e))
11-
* **middleware:** replace `url-join` with `path.posix.join` ([#334](https://github.com/webpack/webpack-dev-middleware/issues/334)) ([d75802b](https://github.com/webpack/webpack-dev-middleware/commit/d75802b))
11+
* don't add charset to `usdz` file type ([#357](https://github.com/webpack/webpack-dev-middleware/issues/357)) ([b135b3d](https://github.com/webpack/webpack-dev-middleware/commit/b135b3d))
12+
13+
14+
15+
<a name="3.5.1"></a>
16+
## [3.5.1](https://github.com/webpack/webpack-dev-middleware/compare/v3.5.0...v3.5.1) (2019-01-17)
17+
18+
19+
### Bug Fixes
20+
21+
* remove querystring from filenames when writing to disk ([#361](https://github.com/webpack/webpack-dev-middleware/issues/361)) ([90d0d94](https://github.com/webpack/webpack-dev-middleware/commit/90d0d94))
22+
23+
24+
25+
<a name="3.5.0"></a>
26+
# [3.5.0](https://github.com/webpack/webpack-dev-middleware/compare/v3.4.0...v3.5.0) (2019-01-04)
27+
28+
29+
### Bug Fixes
30+
31+
* **middleware:** do not add 'null' to Content-Type ([#355](https://github.com/webpack/webpack-dev-middleware/issues/355)) ([cf4d7a9](https://github.com/webpack/webpack-dev-middleware/commit/cf4d7a9))
32+
33+
34+
### Features
35+
36+
* allow to redefine `mimeTypes` (possible to use `force` option) ([#349](https://github.com/webpack/webpack-dev-middleware/issues/349)) ([e56a181](https://github.com/webpack/webpack-dev-middleware/commit/e56a181))
1237

1338

1439

appveyor.yml

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ init:
55

66
environment:
77
matrix:
8+
- nodejs_version: '11'
9+
webpack_version: latest
810
- nodejs_version: '10'
911
webpack_version: latest
1012
- nodejs_version: '8'

lib/fs.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ module.exports = {
2626
for (const assetPath of Object.keys(assets)) {
2727
const asset = assets[assetPath];
2828
const source = asset.source();
29-
const isAbsolute = path.isAbsolute(assetPath);
30-
const writePath = isAbsolute ? assetPath : path.join(outputPath, assetPath);
29+
const [assetPathClean] = assetPath.split('?');
30+
const isAbsolute = path.isAbsolute(assetPathClean);
31+
const writePath = isAbsolute ? assetPathClean : path.join(outputPath, assetPathClean);
3132
const relativePath = path.relative(process.cwd(), writePath);
3233
const allowWrite = filter && typeof filter === 'function' ? filter(writePath) : true;
3334

0 commit comments

Comments
 (0)