vue.js 360 B

123456789101112131415
  1. const VueLoaderPlugin = require('vue-loader/lib/plugin');
  2. module.exports = () => config => {
  3. config.resolve.extensions.push('.vue');
  4. config.module.rules.unshift({
  5. test: /\.vue$/,
  6. loader: 'vue-loader',
  7. options: {
  8. compilerOptions: {
  9. preserveWhitespace: false,
  10. },
  11. },
  12. });
  13. config.plugins.push(new VueLoaderPlugin());
  14. };