Closed tjdunklee closed 6 years ago
In your example rtlcss gets both css and map files as input and it fails on non-css. I had the same problem and I just used gulp-if to filter css files. Like
...
.pipe(gulp.dest(assetPath + 'stylesheets'))
.pipe(gulpIf('*.css', rtlcss()))
.pipe(gulpIf('*.css', rename({suffix: '-rtl'})))
.pipe(gulpIf('*.css', gulp.dest(assetPath + 'stylesheets')));
Probably lazypipe can be used to wrap all 3 rtl-related steps with single gulp-if.
Thank you for taking the time to suggest a fix @maximivanov! I'm going to implement it next week and I'll update on here if it worked.
Source map support will be added in 1.1.0. I'm planning on deploying this version today.
Hi guys, It looks like it fails with the source map again. I have the same error now and it resolves by disabling the source maps.
@kovart: Can you post the gulpfile snippet that is failing?
First of all, thank you for the very helpful module!!! I'm using it to automate my RTL CSS but ran into a problem when I am trying to make sourcemaps (using Gulp-Sourcemaps). Here is my Gulp task I am trying to use:
Here is the error I receive:
Any ideas what could be causing this? Do I need to change the order of my Gulp task?