-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing space between HTML elements #9021
Comments
Whitespace characters between HTML tags are removed because https://cli.vuejs.org/guide/webpack.html#chaining-advanced The first one is simpler imho, actually here's what you need to do:
module.exports = {
chainWebpack(config) {
config.module
.rule('vue')
.use('vue-loader')
.loader('vue-loader')
.tap(options => ({
...options,
compilerOptions: {
...options.compilerOptions,
preserveWhitespace: true,
},
}));
},
}; |
As @sqal said. |
Thank you! |
Quick tip if you really need a space to be present between particular tags... you can always explicitly insert one using the e.g. <span>lorem</span> <span>ipsum</span> |
You can also explicitly insert one using mustache: <span>lorem</span>{{ ' ' }}<span>ipsum</span> |
Version
2.5.17
Reproduction link
https://github.com/revolter/website/tree/demo/missing-space-bugSteps to reproduce
Run the app and navigate to the
about
page.What is expected?
A space between the
abbr
andcode
tags as in theAbout.vue
file.What is actually happening?
The mentioned space is missing when rendered in the browser.
The text was updated successfully, but these errors were encountered: