Skip to content

Commit

Permalink
fix(package): update mime to version 2.2.0 (#59)
Browse files Browse the repository at this point in the history
* fix(package): update mime to version 2.2.0

Closes #57

* chore: drop supporting node < 6

BREAKING CHANGE: no longer support node < 6

* chore: address the method name change of mime

* test: fix inappropriate before hook
  • Loading branch information
ktsn authored Jan 6, 2018
1 parent d0a7289 commit 179766d
Show file tree
Hide file tree
Showing 5 changed files with 417 additions and 776 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: node_js
node_js:
- "4"
- "6"
- "8"
before_install:
- npm install -g npm@5
- npm install -g greenkeeper-lockfile@1
Expand Down
2 changes: 1 addition & 1 deletion lib/externals/browser-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function transformer (config, depResolver, basePath) {

rule.task(src)
.on('data', file => {
res.setHeader('Content-Type', mime.lookup(outputPath))
res.setHeader('Content-Type', mime.getType(outputPath))
res.end(file.contents)
})
}
Expand Down
Loading

0 comments on commit 179766d

Please sign in to comment.