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

To help you get started, we’ve selected a few css-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
postcss(this, css, map, meta, (err, ...args) => {
    if (err) {
      done(err);
      return;
    }

    const ctx = { ...this };
    ctx.query = {
      ...this.query,
      modules: this.query.modules || true,
      importLoaders: 0,
    };

    cssLoader.call(ctx, ...args);
  });
};

css-loader

css loader module for webpack

MIT
Latest version published 16 days ago

Package Health Score

97 / 100
Full package analysis