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
1 changed files with 4 additions and 1 deletions

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()))