text: const autoprefixer = require('autoprefixer');
  const pxtoviewport = require('postcss-px-to-viewport');
  
  module.exports = {
      outputDir: 'docs',
      publicPath: process.env.NODE_ENV === 'production' ? '/vant-demo/' : '/',
      css: {
          loaderOptions: {
              postcss: {
                  plugins: [
                      autoprefixer(),
                      pxtoviewport({
                          viewportWidth: 375
                      })
                  ]
              }
          }
      },
      devServer: {
          proxy: {
              '/api': {
                  target: 'http://localhost:8090'
              }
          }
      }
  };