123456789101112131415 |
- const VueLoaderPlugin = require('vue-loader/lib/plugin');
- module.exports = () => config => {
- config.resolve.extensions.push('.vue');
- config.module.rules.unshift({
- test: /\.vue$/,
- loader: 'vue-loader',
- options: {
- compilerOptions: {
- preserveWhitespace: false,
- },
- },
- });
- config.plugins.push(new VueLoaderPlugin());
- };
|