diff --git a/postcss.config.js b/postcss.config.js index f509a85..8c25487 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,9 +1,9 @@ module.exports = { plugins: { autoprefixer: {}, - // "postcss-px2rem-exclude": { - // remUnit: 192, - // exclude: /node_modules|folder_name/i - // } + "postcss-px2rem-exclude": { + remUnit: 40, + exclude: /node_modules|folder_name/i, + }, }, }; diff --git a/vue.config.js b/vue.config.js index 269c795..5dbb489 100644 --- a/vue.config.js +++ b/vue.config.js @@ -34,15 +34,15 @@ module.exports = { // proxy: 'http://jdxdev.vipgz4.idcfengye.com/' }, chainWebpack: (config) => { - // config.module - // .rule('css') - // .test(/\.css$/) - // .oneOf('vue') - // .resourceQuery(/\?vue/) - // .use('px2rem') - // .loader('px2rem-loader') - // .options({ - // remUnit: 192 - // }) + config.module + .rule("css") + .test(/\.css$/) + .oneOf("vue") + .resourceQuery(/\?vue/) + .use("px2rem") + .loader("px2rem-loader") + .options({ + remUnit: 40, + }); }, };