mirror of
https://github.com/ipdb/website.git
synced 2024-11-22 09:36:52 +01:00
fix build
This commit is contained in:
parent
4359dd7b6a
commit
ec78368983
@ -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()))
|
||||||
|
Loading…
Reference in New Issue
Block a user