Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Фикс: преттификация разметки ломала script + script
Browse files Browse the repository at this point in the history
  • Loading branch information
nicothin committed May 14, 2021
1 parent ba94cfb commit 2e78fed
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ function compilePug() {
.pipe(prettyHtml(prettyOption))
.pipe(replace(/^(\s*)(<button.+?>)(.*)(<\/button>)/gm, '$1$2\n$1 $3\n$1$4'))
.pipe(replace(/^( *)(<.+?>)(<script>)([\s\S]*)(<\/script>)/gm, '$1$2\n$1$3\n$4\n$1$5\n'))
.pipe(replace(/^( *)(<.+?>)(<script\s+src.+>)(?:[\s\S]*)(<\/script>)/gm, '$1$2\n$1$3$4'))
.pipe(through2.obj(getClassesToBlocksList))
.pipe(dest(dir.build));
}
Expand All @@ -123,7 +122,6 @@ function compilePugFast() {
.pipe(prettyHtml(prettyOption))
.pipe(replace(/^(\s*)(<button.+?>)(.*)(<\/button>)/gm, '$1$2\n$1 $3\n$1$4'))
.pipe(replace(/^( *)(<.+?>)(<script>)([\s\S]*)(<\/script>)/gm, '$1$2\n$1$3\n$4\n$1$5\n'))
.pipe(replace(/^( *)(<.+?>)(<script\s+src.+>)(?:[\s\S]*)(<\/script>)/gm, '$1$2\n$1$3$4'))
.pipe(through2.obj(getClassesToBlocksList))
.pipe(dest(dir.build));
}
Expand Down

0 comments on commit 2e78fed

Please sign in to comment.