1.1.3 • Published 5 years ago

css-modules-fix-local-keyframes-loader v1.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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.

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,
      }
    },
  ],
}