Skip to content

Commit

Permalink
merge PR vuejs#227
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonpecora committed Sep 4, 2018
1 parent 7521d0c commit 07a9cc8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ compiler.compile = function (content, filePath, cb) {
].concat(parts.styles.map(function (style) {
return processStyle(style, filePath, id, resolvedParts)
})))
.then(mergeParts)
.catch(cb)
.then(mergeParts)
.catch(cb)

function mergeParts () {
// check whether script/template has changed
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/extract-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function (b, opts) {
outPath.write(css)
outPath.end()
} else if (typeof outPath === 'string') {
fs.writeFile(outPath, css, function () {})
fs.writeFileSync(outPath, css)
}
})
})
Expand Down

0 comments on commit 07a9cc8

Please sign in to comment.