1
0
mirror of https://github.com/ipdb/website.git synced 2024-12-28 15:47:44 +01:00

fix build

This commit is contained in:
Matthias Kretschmann 2017-08-09 17:27:08 +02:00
parent 4359dd7b6a
commit ec78368983
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -134,8 +134,8 @@ export const html = () => src(DIST + '**/*.html')
// Styles
//
export const css = () => src([
SRC + '_assets/styles/ipdb.scss',
SRC + '_assets/styles/page-*.scss'
SRC + '_assets/scss/ipdb.scss',
SRC + '_assets/scss/page-*.scss'
])
.pipe($.if(!(isProduction || isStaging), $.sourcemaps.init()))
.pipe($.sass({
@ -179,12 +179,12 @@ export const criticalCss = (done) => {
//
export const js = () =>
src([
SRC + '_assets/scripts/ipdb.js',
SRC + '_assets/scripts/page-*.js'
SRC + '_assets/js/ipdb.js',
SRC + '_assets/js/page-*.js'
])
.pipe($.if(!(isProduction || isStaging), $.sourcemaps.init()))
.pipe($.include({
includePaths: ['node_modules', SRC + '_assets/scripts']
includePaths: ['node_modules', SRC + '_assets/js']
})).on('error', onError)
.pipe($.if(isProduction || isStaging, minify())).on('error', onError)
.pipe($.if(!(isProduction || isStaging), $.sourcemaps.write()))