css-modules-fix-local-keyframes-loader

1.1.3 • 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.


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 css-modules-fix-local-keyframes-loader

Weekly Downloads

0

Version

1.1.3

License

MIT

Unpacked Size

2.58 kB

Total Files

4

Last publish

Collaborators

  • pristas-peter