shuinichang_/vue.config.js

25 lines
613 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const { defineConfig } = require("@vue/cli-service");
// 引入等比适配插件
// const px2rem = require("postcss-px2rem");
// 配置基本大小
// const postcss = px2rem({
// // 基准大小 baseSize需要和rem.js中相同
// // remUnit: 14 代表 1rem = 14px; 所以当你一个14px值时它会自动转成 (14px/14)rem
// remUnit: 14,
// });
module.exports = defineConfig({
transpileDependencies: true,
// css: {
// loaderOptions: {
// less: {
// javascriptEnabled: true,
// },
// postcss: {
// plugins: [postcss],
// },
// },
// },
});