Skip to content
Prev Previous commit
Next Next commit
feat!: use set scriptLoading to defer by default
  • Loading branch information
haoqunjiang committed Feb 8, 2021
commit 8f7ccbfd60e8dcde4f965ffa45e434d58ef7255d
1 change: 1 addition & 0 deletions packages/@vue/cli-service/lib/config/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ module.exports = (api, options) => {

const htmlOptions = {
title: api.service.pkg.name,
scriptLoading: 'defer',
templateParameters: (compilation, assets, assetTags, pluginOptions) => {
// enhance html-webpack-plugin's built in template params
let stats
Expand Down