const path = require("path");
module.exports = {
  runtimeCompiler: true,
  // publicPath: process.env.NODE_ENV === 'production'
  //   ? '/rrf-vue-element-base-components/'
  //   : '/',
  // publicPath: '/',
  configureWebpack: {
      resolve: {
          alias: {
              "@": path.resolve("src"),
              "pkgs": path.resolve("packages"),
          }
      },
  },
  chainWebpack: config => {
    config.module.rule('md')
      .test(/\.md/)
      .use('vue-loader')
      .loader('vue-loader')
      .end()
      .use('vue-markdown-loader')
      .loader('vue-markdown-loader/lib/markdown-compiler')
      .options({
        raw: true
      })
  },
   // 配置全局样式变量
  css: {
    loaderOptions: {
      sass: {
        prependData: `@import "@/assets/css/base.scss";`
      }
    }
  },

}