2

can't understand how to change whitespace options

is it should set in webpack.js? const compiler = require('vue-template-compiler')

in readme write compiler.compile(template, [options]) ???

but what is template string mean?

I need set whitespace option to 'condense'

user3111431
  • 21
  • 1
  • 2

1 Answers1

2

Normally you edit vue.config.js

module.exports = {
  chainWebpack: config => {
    config.module
      .rule('vue')
      .use('vue-loader')
      .loader('vue-loader')
      .tap(options => {
        options.compilerOptions = { whitespace: 'condense' };
        return options;
      });
  }
}
oshell
  • 8,923
  • 1
  • 29
  • 47