1
0
mirror of https://github.com/ipdb/website.git synced 2024-11-22 09:36:52 +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 // Styles
// //
export const css = () => src([ export const css = () => src([
SRC + '_assets/styles/ipdb.scss', SRC + '_assets/scss/ipdb.scss',
SRC + '_assets/styles/page-*.scss' SRC + '_assets/scss/page-*.scss'
]) ])
.pipe($.if(!(isProduction || isStaging), $.sourcemaps.init())) .pipe($.if(!(isProduction || isStaging), $.sourcemaps.init()))
.pipe($.sass({ .pipe($.sass({
@ -179,12 +179,12 @@ export const criticalCss = (done) => {
// //
export const js = () => export const js = () =>
src([ src([
SRC + '_assets/scripts/ipdb.js', SRC + '_assets/js/ipdb.js',
SRC + '_assets/scripts/page-*.js' SRC + '_assets/js/page-*.js'
]) ])
.pipe($.if(!(isProduction || isStaging), $.sourcemaps.init())) .pipe($.if(!(isProduction || isStaging), $.sourcemaps.init()))
.pipe($.include({ .pipe($.include({
includePaths: ['node_modules', SRC + '_assets/scripts'] includePaths: ['node_modules', SRC + '_assets/js']
})).on('error', onError) })).on('error', onError)
.pipe($.if(isProduction || isStaging, minify())).on('error', onError) .pipe($.if(isProduction || isStaging, minify())).on('error', onError)
.pipe($.if(!(isProduction || isStaging), $.sourcemaps.write())) .pipe($.if(!(isProduction || isStaging), $.sourcemaps.write()))