css-loader-with-hooks

5.0.1 • Public • Published

css-loader-with-hooks

The css-loader-with-hooks is a css-loader fork with access to internal loader data from webpack config

Using hooks

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: [
          "style-loader",
          {
            loader: "css-loader-with-hooks",
            options: {
              onExports : (exports, loaderContext) => {

              }
            }
        ],
      },
    ],
  },
};

Package Sidebar

Install

npm i css-loader-with-hooks

Weekly Downloads

2

Version

5.0.1

License

MIT

Unpacked Size

91.9 kB

Total Files

17

Last publish

Collaborators

  • dm.shpak