rollup-plugin-uniroll-css
TypeScript icon, indicating that this package has built-in type declarations

4.0.1-alpha.0 • Public • Published

Example with optimization

// @ts-ignore
import precss from "precss";
import postcss from "postcss";
import autoprefixer from "autoprefixer";
import nano from "cssnano";

// NOTE: サーバーでだけ使う
const prefix = `/* autoprefixer grid: autoplace */\n`;
export async function transformCss(input: string) {
  const result = await postcss([
    precss,
    autoprefixer({
      overrideBrowserslist: ["last 2 versions", "ie 11"]
    }),
    nano
  ]).process(prefix + input, { from: undefined });
  return result.css;
}

Readme

Keywords

none

Package Sidebar

Install

npm i rollup-plugin-uniroll-css

Weekly Downloads

103

Version

4.0.1-alpha.0

License

MIT

Unpacked Size

7.14 kB

Total Files

20

Last publish

Collaborators

  • mizchi