build: {
html: {
minify: {
collapseWhitespace: true
}
},
},
template
<span>a</span>
<span>bc</span>
预期:
<span>a</span>
<span>bc</span>
实际:
<span>a</span> <span>bc</span>
you might want to use vue compiler options for that ( in build in your nuxt.config.js)
loaders: {
vue: {
compilerOptions: {
whitespace: 'condense'
}
}
},
you might want to use vue compiler options for that ( in
buildin your nuxt.config.js)loaders: { vue: { compilerOptions: { whitespace: 'condense' } } },
谢谢 完美运行~!
Most helpful comment
you might want to use vue compiler options for that ( in
buildin your nuxt.config.js)