Skip to content

Commit

Permalink
refactor vue config webpack options (#1338)
Browse files Browse the repository at this point in the history
  • Loading branch information
addy-pathania authored Feb 15, 2023
1 parent 7be9af5 commit a58dea1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/create-sitecore-jss/src/templates/vue/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ if (process.env.BUILD_TARGET_ENV === 'server') {
if (process.env.NODE_ENV === 'production') {
vueConfig.chainWebpack = (config) => {
config.plugin('html').init((Plugin, args) => {
args[0].minify = {
...args[0].minify,
removeAttributeQuotes: false,
const newArgs = {
...args[0],
minify: args[0].minify || {},
};
return new Plugin(args);
newArgs.minify.removeAttributeQuotes = false;
return new Plugin(newArgs);
});
};
}
Expand Down

0 comments on commit a58dea1

Please sign in to comment.