-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative paths are not resolved #17
Comments
Hey, I haven't used pleeease in very long time, but is pleeease expected to do that by default ? |
I'm also not sure about expected result, but try the |
Thanks for your help. Here is more detailed test that will help you to see what is the expected result and what I can't achieve with Gulp & Pleeease. For this example, I created two CSS files (I have to check if concatenation works well), one with a background-image with a relative path. css/file1.css.file1-test {
background-image: url(../img/test.png);
} css/file2.css.file2-test {
display: block;
} I also created a .pleeeaserc{
"in": ["css/file1.css", "css/file2.css"],
"out": "all-pleeease.css"
} gulpfile.jsvar gulp = require('gulp')
var concat = require('gulp-concat')
var pleeease = require('gulp-pleeease')
gulp.task('default', function() {
gulp.src([
'css/file1.css',
'css/file2.css'
])
.pipe(concat('all-gulp.css'))
.pipe(pleeease())
.pipe(gulp.dest('.'))
}) Running all-pleeease.css.file1-test{background-image:url(img/test.png)}.file2-test{display:block} all-gulp.css.file1-test{background-image:url(../img/test.png)}.file2-test{display:block} We can see relative paths are resolved with Pleeease CLI but not with Gulp. The result is the same with |
HI,
I'm not sure if this is an issue or a PEBKAC but I can't get any configuration to resolve relative paths in my CSS.
For example, if I use a picture as a background-image, my original code will be:
With Pleeease, my processed CSS will be:
With gulp-pleeease, I tried with this code and it doesn't resolve relative paths:
Am I missing something? Everything is working fine (autoprefixer, etc.) except that. I even tried to remove
.pipe(concat('all.css'))
but it doesn't change anything.Thanks for your help!
The text was updated successfully, but these errors were encountered: