-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels