Skip to content
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

feat!: set whitespace: 'condense' for template compiler #3853

Merged
merged 1 commit into from
Apr 22, 2019

Commits on Apr 19, 2019

  1. feat!: set whitespace: 'condense' for template compiler

    BREAKING CHANGE:
    Detailed explanation: vuejs/vue#9208 (comment)
    
    Take the following template as example:
    ```
    <p>
      Welcome to <b>Vue.js</b> <i>world</i>.
      Have fun!
    </p>
    ```
    
    With `preserveWhitespace: false`, it was compiled as:
    ```
    <p> Welcome to <b>Vue.js</b><i>world</i>. Have fun! </p>
    ```
    
    With `whitespace: 'condense'`, it is now compiled as:
    ```
    <p> Welcome to <b>Vue.js</b> <i>world</i>. Have fun! </p>
    ```
    
    Note the **inline whitespace between tags** is preserved.
    haoqunjiang committed Apr 19, 2019
    Configuration menu
    Copy the full SHA
    a8f98a9 View commit details
    Browse the repository at this point in the history