diff --git a/lib/compiler.js b/lib/compiler.js index cde3d99..f011e00 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -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 diff --git a/package-lock.json b/package-lock.json index 54967fb..2ef7fd8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "vueify", + "name": "@nymag/vueify", "version": "9.4.2", "lockfileVersion": 1, "requires": true, diff --git a/plugins/extract-css.js b/plugins/extract-css.js index e3331e9..ac81908 100644 --- a/plugins/extract-css.js +++ b/plugins/extract-css.js @@ -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) } }) })