Skip to content

Commit 6112cab

Browse files
authored
Fixed relative URLs from becoming absolute during build (#1354)
1 parent 698102c commit 6112cab

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

gulpfile.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,19 @@ gulp.task('bundle-minimalist', function (done) {
181181

182182
// bundle css
183183
gulp.task('bundle-css', function (done) {
184+
const concatOptions = { rebaseUrls: false }
185+
const minifyOptions = { rebase: false }
184186
gulp
185187
.src(['src/scss/jsoneditor.scss'])
186188
.pipe(
187189
sass({
188190
// importer: tildeImporter
189191
})
190192
)
191-
.pipe(concatCss(NAME + '.css'))
193+
.pipe(concatCss(NAME + '.css', concatOptions))
192194
.pipe(gulp.dest(DIST))
193-
.pipe(concatCss(NAME + '.min.css'))
194-
.pipe(minifyCSS())
195+
.pipe(concatCss(NAME + '.min.css', concatOptions))
196+
.pipe(minifyCSS(minifyOptions))
195197
.pipe(gulp.dest(DIST))
196198
done()
197199
})

0 commit comments

Comments
 (0)