Option preserveWhitespace still not working
See original GitHub issueRef https://github.com/JeffreyWay/laravel-mix/issues/1753
Any idea why this is still not working? I still see whitespaces between dom elements…
https://vue-loader-v14.vuejs.org/en/options.html#preservewhitespace
mix.options({
vue: {
preserveWhitespace: false
}
})
-> % npm list|grep vue
..
├── vue@2.6.11
..
-> % npm list|grep vue-loader
│ ├─┬ vue-loader@15.8.3
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Option preserveWhitespace still not working #2463 - GitHub
Any idea why this is still not working? I still see whitespaces between dom elements.. https://vue-loader-v14.vuejs.org/en/options.html# ...
Read more >How to globally set the preserveWhitespaces option in ...
I've seen the PR, but from what I can tell from some tests is that the only way to use it is to...
Read more >XDocument.Parse Method (System.Xml.Linq) - Microsoft Learn
Creates a new XDocument from a string, optionally preserving white space, setting the base URI, and retaining line information.
Read more >DOMDocument - Manual - PHP
Last child element or null . preserveWhiteSpace. Do not remove redundant white space. Default to true . Setting this to false has the...
Read more >Option to preserve whitespace for autoformat for XML element ...
What steps will reproduce the issue? Create a simple XML document: <a> <b>foo bar</b> </a>. XML. Reformat the file via IDEA.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I couldn’t get this to work in the webpack config, however I did get it working.
For Vue3, Following the docs here: https://v3.vuejs.org/api/application-config.html#compileroptions-whitespace
I updated my
resources/js/app.js
:Hi,
preserveWhitespace
is deprecated and new option iswhitespace
This is the new syntax: