const { VantResolver } = require("unplugin-vue-components/resolvers"); const ComponentsPlugin = require("unplugin-vue-components/webpack"); const page = require("./page.config"); module.exports = { pages: page.output, productionSourceMap: false, publicPath: "./", pluginOptions: { "style-resources-loader": { preProcessor: "sass", patterns: [], }, }, configureWebpack: { plugins: [ ComponentsPlugin({ resolvers: [VantResolver()], }), ] }, };