Add node_modules and src directories to Stylus paths. Third party CSS files can now be imported with absolute path

This commit is contained in:
Riku Rouvila
2015-08-17 17:36:56 +03:00
parent 54f261e1b7
commit 611c310a47
3 changed files with 5 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ var watch = require('gulp-watch');
var production = process.env.NODE_ENV === 'production';
var config = {
source: './src',
destination: './public',
scripts: {
source: './src/main.js',
@@ -112,6 +113,7 @@ gulp.task('styles', function() {
pipeline = pipeline.pipe(stylus({
'include css': true,
paths: ['node_modules', path.join(__dirname, config.source)],
compress: production
}))
.on('error', handleError)