ruoyi-ui/vue.config.js
@@ -47,8 +47,15 @@ }, css: { loaderOptions: { sass: { sassOptions: { outputStyle: "expanded" } // sass: { // sassOptions: { outputStyle: "expanded" } // } postcss:{ plugins:[ require('postcss-px2rem')({ remUnit:192 }) ] } } }, @@ -90,6 +97,17 @@ symbolId: 'icon-[name]' }) .end() // // config.module // .rule("css") // .test(/\.css$/) // .oneOf("vue") // .resourceQuery(/\?vue/) // .use("px2rem") // .loader("px2rem-loader") // .options({ // remUnit: 192 // 设计稿大小比例 / 10 // }); config .when(process.env.NODE_ENV !== 'development', @@ -134,4 +152,5 @@ } ) } }