Skip to content

Commit

Permalink
fix(ui): pwa config: manifest.json indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed May 24, 2018
1 parent 0f30639 commit 27e66a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli-plugin-pwa/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function updateAppManifest (cwd, handler) {
try {
const manifest = JSON.parse(fs.readFileSync(manifestPath, { encoding: 'utf8' }))
handler(manifest)
fs.writeFileSync(manifestPath, JSON.stringify(manifest), { encoding: 'utf8' })
fs.writeFileSync(manifestPath, JSON.stringify(manifest, null, 2), { encoding: 'utf8' })
} catch (e) {
console.log(`Can't update JSON in ${manifestPath}`)
}
Expand Down

0 comments on commit 27e66a8

Please sign in to comment.