wmr-autoprefixer
v1.0.0
Published
wmr plugin to add vendor prefixes to css
Downloads
2
Readme
wmr-autoprefixer
This is a version of the PostCSS-Autoprefixer bundled as a wmr plugin in a single file.
Install
npm i --save-dev wmr-autoprefixer
or
yarn add --dev wmr-autoprefixer
Usage
Add the plugin to your wmr.config.mjs
.
import { defineConfig } from 'wmr';
import autoPrefixer from 'wmr-autoprefixer';
export default defineConfig({
plugins: [autoPrefixer()],
});
Configure the browserslist
in your package.json
according to the compatibility you need. See Browserslist docs to know all the possibilities.
Ex:
"browserslist": [
"defaults",
"last 4 versions"
]