We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
设置后,不生效。。 chainWebpack(config) { config.module .rule('pxtovw') .test(/.css$/) .use('pxtovw-loader') .loader(path.resolve('./loaders/inline-style-px-to-vw.js')) .options({ unitToConvert: 'px', // 自定义转换单位 viewportWidth: 375, // 视口宽度 unitPrecision: 5, // 保留小数位 minPixelValue: 2 // 最小转换数值 }) .end().exclude.add([path.resolve('../src/pages/.umi'), path.resolve('node_modules')]) }
chainWebpack(config) { config.module .rule('pxtovw') .test(/.css$/) .use('pxtovw-loader') .loader(path.resolve('./loaders/inline-style-px-to-vw.js')) .options({ unitToConvert: 'px', // 自定义转换单位 viewportWidth: 375, // 视口宽度 unitPrecision: 5, // 保留小数位 minPixelValue: 2 // 最小转换数值 }) .end().exclude.add([path.resolve('../src/pages/.umi'), path.resolve('node_modules')]) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
设置后,不生效。。
chainWebpack(config) { config.module .rule('pxtovw') .test(/.css$/) .use('pxtovw-loader') .loader(path.resolve('./loaders/inline-style-px-to-vw.js')) .options({ unitToConvert: 'px', // 自定义转换单位 viewportWidth: 375, // 视口宽度 unitPrecision: 5, // 保留小数位 minPixelValue: 2 // 最小转换数值 }) .end().exclude.add([path.resolve('../src/pages/.umi'), path.resolve('node_modules')]) }
The text was updated successfully, but these errors were encountered: