Fix minor issue in webpack dev config

This commit is contained in:
Roman Hotsiy 2016-12-23 00:40:41 +02:00
parent 17fd100da4
commit d3af2e6867
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -75,13 +75,13 @@ module.exports = {
loader: StringReplacePlugin.replace({
replacements: [
{
pattern: /styleUrls:\s*\[\s*'([\w\.\/-]*)\.css'\s*\][\s,]*$/m,
pattern: /styleUrls:\s*\[\s*'([\w\.\/-]*)\.css'\s*\][\s,]*$/gm,
replacement: function (match, p1, offset, string) {
return `styleUrls: ['${p1}.scss'],`;
}
},
{
pattern: /(\.\/components\/Redoc\/redoc-initial-styles\.css)/m,
pattern: /(\.\/components\/Redoc\/redoc-initial-styles\.css)/gm,
replacement: function (match, p1, offset, string) {
return p1.replace('.css', '.scss');
}