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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whitespace default value #10807

xesjkeee opened this issue Nov 7, 2019 · 1 comment


Copy link

@xesjkeee xesjkeee commented Nov 7, 2019



Reproduction link


Steps to reproduce

Hello 馃枛

In a doc ( you said that a whitespace has default value 'preserve', but if I inspect vue by vue inspect --rule vue I got this config rule:

/* config.module.rule('vue') */
  test: /\.vue$/,
  use: [
    /* config.module.rule('vue').use('cache-loader') */
      loader: 'cache-loader',
      options: {
        cacheDirectory: '/Users/xesjkeee/Documents/estate/node_modules/.cache/vue-loader',
        cacheIdentifier: 'e80101b6'
    /* config.module.rule('vue').use('vue-loader') */
      loader: 'vue-loader',
      options: {
        compilerOptions: {
          whitespace: 'condense'
        cacheDirectory: '/Users/xesjkeee/Documents/estate/node_modules/.cache/vue-loader',
        cacheIdentifier: 'e80101b6'

I don't know where is error 鈥 in the doc or in code, so this looks queerly 馃

What is expected?

whitespace is 'preserve' by default

What is actually happening?

whitespace is 'condense' by default

@vue/cli 4.0.3


This comment has been minimized.

Copy link

@posva posva commented Nov 7, 2019

The cli changes that option to a different default

@posva posva closed this Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can鈥檛 perform that action at this time.