Skip to content

Double quotation marks string replace issue #36

@bitfella

Description

@bitfella

Hello,
I am trying to remove the following string @charset "UTF-8"; from Webpack's css output.
I am using the following configuration:

          loader: 'string-replace-loader',
          query: {
            multiple: [
              {
                search: '@charset "UTF-8";', 
                replace: '_____AAAAA_____',
                flags: 'ig'
              }              
            ]
          }

but it does not seems to work, unfortunately.
I noticed the following webpack log on my terminal:

"search":"@charset /"UTF-8/";","replace":"_____AAAAA_____","flags":"ig"

I guess something's wrong with the way the regexp is created, since it appends slashes, building up a wrong string that does not exists in my css.

Any idea?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions