evrone / postcss-px-to-viewport

A plugin for PostCSS that generates viewport units (vw, vh, vmin, vmax) from pixel units. The best choice to create a scalable interface on different displays by one design size.
https://evrone.com/postcss-px-viewport
MIT License
3.04k stars 406 forks source link

use with webpack #41

Closed huge689 closed 4 years ago

huge689 commented 4 years ago

how to use with webpack

KODerFunk commented 4 years ago

@huge689 At first you need use postcss via https://github.com/postcss/postcss-loader postcss-px-to-viewport only plugin for postcss. Scheme: postcss-px-to-viewport => postcss => postcss-loader => webpack