Skip to content

Commit

Permalink
Fixed relative URLs from becoming absolute during build (josdejong#1354)
Browse files Browse the repository at this point in the history
  • Loading branch information
esulu authored and andyquinterom committed Dec 7, 2021
1 parent 4c9e55f commit ab33a9a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gulpfile.js
Expand Up @@ -181,17 +181,19 @@ gulp.task('bundle-minimalist', function (done) {

// bundle css
gulp.task('bundle-css', function (done) {
const concatOptions = { rebaseUrls: false }
const minifyOptions = { rebase: false }
gulp
.src(['src/scss/jsoneditor.scss'])
.pipe(
sass({
// importer: tildeImporter
})
)
.pipe(concatCss(NAME + '.css'))
.pipe(concatCss(NAME + '.css', concatOptions))
.pipe(gulp.dest(DIST))
.pipe(concatCss(NAME + '.min.css'))
.pipe(minifyCSS())
.pipe(concatCss(NAME + '.min.css', concatOptions))
.pipe(minifyCSS(minifyOptions))
.pipe(gulp.dest(DIST))
done()
})
Expand Down

0 comments on commit ab33a9a

Please sign in to comment.