mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-13 04:16:34 +03:00
Fix minor issue in webpack dev config
This commit is contained in:
parent
17fd100da4
commit
d3af2e6867
|
@ -75,13 +75,13 @@ module.exports = {
|
||||||
loader: StringReplacePlugin.replace({
|
loader: StringReplacePlugin.replace({
|
||||||
replacements: [
|
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) {
|
replacement: function (match, p1, offset, string) {
|
||||||
return `styleUrls: ['${p1}.scss'],`;
|
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) {
|
replacement: function (match, p1, offset, string) {
|
||||||
return p1.replace('.css', '.scss');
|
return p1.replace('.css', '.scss');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user