Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including postcss-plugin-for-vue-px2rem-ignore1px with all npm packages installed. Try it out:

var postcssPluginForVuePx2remIgnore1px = require("postcss-plugin-for-vue-px2rem-ignore1px")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

postcss-plugin-for-vue-px2rem-ignore1px v1.0.0

解析.vue中的样式,将其中的px单位改成rem,可以设置不想转换成rem的单位(其他那个https://github.com/songsiqi/px2rem在webpack的production环境,会先执行uglify, 会造成注释被移除掉, 所以无法用注释来作为转与不转的标记 )

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free