5.0.1 • Published 3 years ago
css-loader-with-hooks v5.0.1
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) => {
}
}
],
},
],
},
};
5.0.1
3 years ago