1.2.2 • Published 5 years ago
@react-app/css-modules-fix-local-keyframes-loader v1.2.2
css-modules-fix-local-keyframes-loader
For some reason when using keyframes keyword in :local scope, the output contains :local(classname) instead of just class name like it should. This loader fixes this bug.
npm i @react-app/css-modules-fix-local-keyframes-loader
In development:
{
test: /\.module\.css$/,
use: [
'style-loader',
'css-modules-fix-local-keyframes-loader',
{
loader: 'css-loader',
options: {
modules: true,
}
},
],
}
In production:
{
test: /\.module\.css$/,
use: [
MiniCssExtractPlugin.loader
'css-modules-fix-local-keyframes-loader',
{
loader: 'css-loader',
options: {
modules: true,
}
},
],
}