run-postcss-after-compilation-webpack-plugin

1.0.1 • Public • Published

run-postcss-after-compilation-webpack-plugin

npm version

Plugin used to run PostCSS on Webpack CSS output. Useful for applying the PostCSS processing on the bundled CSS instead of per-file.

Works with Webpack (>= 4.0).

Install

npm install --save-dev run-postcss-after-compilation-webpack-plugin

Usage

You must pass the absolute path to the postcss.config.js file to the plugin's constructor.

// webpack.config.js
 
const RunPostCSSAfterCompilationPlugin = require('run-postcss-after-compilation-webpack-plugin');
 
module.exports = {
    plugins: {
        new RunPostCSSAfterCompilationPlugin(path.resolve(__dirname, "postcss.config.js"))
    }
}

/run-postcss-after-compilation-webpack-plugin/

    Package Sidebar

    Install

    npm i run-postcss-after-compilation-webpack-plugin

    Weekly Downloads

    7

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    4.32 kB

    Total Files

    4

    Last publish

    Collaborators

    • sergiucaraian