vue.config.js 418 B

12345678910111213141516171819
  1. const autoprefixer = require('autoprefixer');
  2. const pxtoviewport = require('postcss-px-to-viewport');
  3. module.exports = {
  4. outputDir: 'dist',
  5. publicPath: process.env.NODE_ENV === 'production' ? '/xyyf-h5-group-buy/' : '/',
  6. css: {
  7. loaderOptions: {
  8. postcss: {
  9. plugins: [
  10. autoprefixer(),
  11. pxtoviewport({
  12. viewportWidth: 750
  13. })
  14. ]
  15. }
  16. }
  17. }
  18. };