Skip to content

Instantly share code, notes, and snippets.

View fantasy525's full-sized avatar
🏠
Working from home

fantasy525 fantasy525

🏠
Working from home
  • BeiJing
View GitHub Profile
function addComments(arg, name) {
// ε½“ε‚ζ•°ε‰ηš„ζ³¨ι‡ŠδΈε­˜εœ¨ηš„ζƒ…ε†΅, 加ε…₯ webpackChunkName ζ³¨ι‡Š
if (!arg.leadingComments) {
arg.leadingComments = [
{
type: 'CommentBlock',
value: ` webpackChunkName: '${name}' `,
},
]
}