Skip to content

Commit afa4631

Browse files
committed
Modify src path
1 parent 7ccc1c0 commit afa4631

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ elixir.extend('postcss', function(src, opts) {
2626
new elixir.Task(name, function() {
2727

2828
var cssnano = css.cssnano ? css.cssnano.pluginOptions : undefined;
29+
var srcPath = opts.srcPath + '/' + src;
2930

3031
var err = function(e) {
3132
// line break
@@ -36,11 +37,11 @@ elixir.extend('postcss', function(src, opts) {
3637

3738
if(typeof this.recordStep !== 'undefined') {
3839
this.recordStep('Post processing CSS');
39-
this.src = opts.srcPath + src;
40+
this.src = srcPath;
4041
this.output = opts.output;
4142
}
4243

43-
return gulp.src(opts.srcPath + src)
44+
return gulp.src(srcPath)
4445
.pipe(plugins.if(opts.sourcemaps, plugins.sourcemaps.init()))
4546
.pipe(plugins.postcss(opts.plugins).on('error', err))
4647
.pipe(plugins.if(config.production, plugins.cssnano(cssnano)))

0 commit comments

Comments
 (0)