@react-app/css-modules-fix-local-keyframes-loader

1.2.2 • Public • Published

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

To use this loader add it to chain after css-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,
      }
    },
  ],
}

Readme

Keywords

none

Package Sidebar

Install

npm i @react-app/css-modules-fix-local-keyframes-loader

Weekly Downloads

0

Version

1.2.2

License

MIT

Unpacked Size

7.54 kB

Total Files

6

Last publish

Collaborators

  • pristas-peter