How to use the postcss-loader.call function in postcss-loader

To help you get started, we’ve selected a few postcss-loader examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github 4Catalyzer / astroturf / src / css-loader.js View on Github external
function postcss(loader, css, map, meta, cb) {
  const ctx = { ...loader };
  ctx.async = () => cb;
  ctx.loaderIndex++;
  ctx.query = {
    plugins: [postcssNested(), postcssAtroot()],
  };

  postcssLoader.call(ctx, css, map, meta);
}

postcss-loader

PostCSS loader for webpack

MIT
Latest version published 5 months ago

Package Health Score

93 / 100
Full package analysis