@okta/odyssey-postcss-preset
TypeScript icon, indicating that this package has built-in type declarations

0.15.3 • Public • Published

@okta/odyssey-postcss-preset

Production Readiness

This project has not yet hit version 1.0.0 and is still in active development.

That said, it is beyond the early alpha stage in some key areas. For some early-adopters that means it is good enough to use for real things. Some other people think this means it is not ready yet.

Even though the project is in development, effort is still made to keep the API stable. Patch versions are intended for backwards-compatible changes and minor versions are intended for backwards-incompatible changes.

If you plan to use this for something real, you should either pin the exact version (maximum safety) or pin the major and minor versions (only accept backwards-compatible upgrades).

Getting Started

Install the package:

$ yarn add --dev @okta/odyssey-postcss-preset

Reference the preset within your postcss configuration:

const { default: postcssOdyssey } = require("@okta/odyssey-postcss-preset");

module.exports = (ctx) => {
  if (!ctx.odyssey) {
    return {};
  }

  const options = Object.assign(
    ctx.odyssey,
    ctx.env === "production" && {
      autoprefixer: {
        grid: "autoplace",
        env: "production",
      },
    }
  );

  return {
    plugins: [postcssOdyssey(options)],
  };
};

License

Apache Version 2.0

Support Disclaimer

This library is community supported and is maintained by members of the Okta team for developers and IT professionals. This library is not an official Okta product and does not qualify for any Okta support. Anyone who chooses to use this library must ensure that their implementation meets any applicable legal obligations including any Okta terms and conditions.

Readme

Keywords

none

Package Sidebar

Install

npm i @okta/odyssey-postcss-preset

Weekly Downloads

178

Version

0.15.3

License

Apache-2.0

Unpacked Size

19.4 kB

Total Files

9

Last publish

Collaborators

  • oktauploader