Webpack px2rem

the web side is developed with vue, and then a preview page needs to be converted to rem for mobile use. How to configure webpack?

`function generateLoaders (loader, loaderOptions) {

const loaders = options.usePostCSS ? [cssLoader, postcssLoader, px2remLoader] : [cssLoader, px2remLoader]

if (loader) {
  loaders.push({
    loader: loader + "-loader",
    options: Object.assign({}, loaderOptions, {
      sourceMap: options.sourceMap
    })
  })
}

// Extract CSS when that option is specified
// (which is the case during production build)
if (options.extract) {
  return ExtractTextPlugin.extract({
    use: loaders,
    fallback: "vue-style-loader",
    publicPath: "../../"
  })
} else {
  return ["vue-style-loader"].concat(loaders)
}

}

return {

css: generateLoaders(),
postcss: generateLoaders(),
less: generateLoaders("less"),
sass: generateLoaders("sass", { indentedSyntax: true }),
scss: generateLoaders("sass"),
stylus: generateLoaders("stylus"),
styl: generateLoaders("stylus")

} `

now that this configuration causes all pages to be converted from px to rem, the style seen on the web side becomes smaller. Is there any way to make one page, such as render.vue, perform rem conversion while the other pages do not change? Or if you have any other ideas, please give me some advice on 3Q

.
Dec.31,2021
Menu