1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-21 17:26:55 +01:00

add __dirname to include path

This commit is contained in:
Matthias Kretschmann 2018-06-13 14:12:14 +02:00
parent 81880cf803
commit f6d15f9479
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -204,7 +204,10 @@ export const js = () =>
])
.pipe($.if(!(isProduction || isStaging), $.sourcemaps.init()))
.pipe($.include({
includePaths: ['node_modules', SRC + '/_assets/javascripts']
includePaths: [
__dirname + '/node_modules',
SRC + '/_assets/javascripts'
]
})).on('error', onError)
.pipe($.if(isProduction || isStaging, minify())).on('error', onError)
.pipe($.if(!(isProduction || isStaging), $.sourcemaps.write()))