@ornikar/postcss-config

    3.4.0 • Public • Published

    @ornikar/postcss-config

    Ornikar postcss config

    Usage

    Configure browserslist with @ornikar/browserslist-config.

    Create postcss.config.js:

    const plugins = require('@ornikar/postcss-config');
    
    module.exports = ({ options }) => ({
      plugins: [
        ...plugins.syntaxPlugins(),
    
        plugins.themePlugin({
          importFrom: 'path/to/theme.css',
          preserve: process.env.NODE_ENV !== 'production',
        }),
    
        plugins.customMediaPlugin({
          importFrom: 'path/to/breakpoints.css',
          preserve: process.env.NODE_ENV !== 'production',
        }),
    
        plugins.autoprefixerPlugin(),
    
        // add other plugins if you need to :)
    
        // production
        ...(process.env.NODE_ENV === 'production' ? plugins.productionPlugins() : []),
      ],
    });

    Keywords

    none

    Install

    npm i @ornikar/postcss-config

    DownloadsWeekly Downloads

    260

    Version

    3.4.0

    License

    ISC

    Unpacked Size

    7.15 kB

    Total Files

    5

    Last publish

    Collaborators

    • abarreir-ornikar