1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 01:36: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($.if(!(isProduction || isStaging), $.sourcemaps.init()))
.pipe($.include({ .pipe($.include({
includePaths: ['node_modules', SRC + '/_assets/javascripts'] includePaths: [
__dirname + '/node_modules',
SRC + '/_assets/javascripts'
]
})).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()))