vue.config.js 427 B

123456789101112131415161718192021222324
  1. let pagesConfig = require("./page.config.js");
  2. const px2rem = require("postcss-px2rem");
  3. const postcss = px2rem({
  4. remUnit: 100
  5. });
  6. module.exports = {
  7. publicPath: "./",
  8. outputDir: undefined,
  9. assetsDir: undefined,
  10. runtimeCompiler: undefined,
  11. productionSourceMap: undefined,
  12. parallel: undefined,
  13. pages: pagesConfig,
  14. css: {
  15. loaderOptions: {
  16. postcss: {
  17. plugins: [postcss]
  18. }
  19. }
  20. }
  21. };