5.0.1 • Published 3 years ago

css-loader-with-hooks v5.0.1

Weekly downloads
8
License
MIT
Repository
github
Last release
3 years ago

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) => {

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