Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(HtmlPwaPlugin): avoid mutating input options
  • Loading branch information
lkho committed Jan 12, 2021
commit cb3dc9cb25d3dfef5e2e9fc69081352435e44fff
3 changes: 1 addition & 2 deletions packages/@vue/cli-plugin-pwa/lib/HtmlPwaPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ const defaultIconPaths = {
module.exports = class HtmlPwaPlugin {
constructor (options = {}) {
const iconPaths = Object.assign({}, defaultIconPaths, options.iconPaths)
delete options.iconPaths
this.options = Object.assign({ iconPaths: iconPaths }, defaults, options)
this.options = Object.assign({}, defaults, options, { iconPaths: iconPaths })
}

apply (compiler) {
Expand Down