[Vuejs]-How to get Vue to remove whitespace in compiled output?

0👍

Put the following in vue.config.js

  chainWebpack: config => {
    config.module
      .rule('vue')
      .use('vue-loader')
      .loader('vue-loader')
      .tap(options => {
        // modify the options...
        options.compilerOptions = { whitespace: 'condense' };
        return options;
      });
  },

Leave a comment