Skip to content
This repository was archived by the owner on Aug 28, 2026. It is now read-only.
This repository was archived by the owner on Aug 28, 2026. It is now read-only.

Fix url filter behavior #891

Closed
Closed

Description

@rodfersou

Related to: #779

The result of the function should be inverted to keep in mind the same behavior when it is a boolean..
I mean when the function return false should not look the url.
This is my configuration in the end:

    {
      test: /\.scss$/,
      use: ExtractTextPlugin.extract({
        fallback: 'style-loader',
        use: [
          {
            loader: 'css-loader',
            options: {
              url: (url, resourcePath) => /\+\+resource\+\+/.test(url)
            }
          },
          'postcss-loader',
          'sass-loader'
        ]
      }),
    },

Activity

  1. alexander-akait commented on Feb 6, 2019

    @alexander-akait
    Member

    @rodfersou thanks for issue, we can fix it only in next major release, i am afraid break loader for other developers

  2. rodfersou commented on Feb 6, 2019

    @rodfersou
    Author

    @evilebottnawi for me looks great!

  3. rodfersou commented on May 29, 2019

    @rodfersou
    Author

    🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions