fluent-css
Advanced tools
Comparing version
@@ -22,6 +22,6 @@ 'use strict'; | ||
if (!filename) { | ||
filename = "fluent-css.css"; | ||
filename = "fluent-css.scss"; | ||
} | ||
else if (filename.indexOf(".css") == -1) { | ||
filename = filename + ".css"; | ||
else if (filename.indexOf(".scss") == -1) { | ||
filename = filename + ".scss"; | ||
} | ||
@@ -38,2 +38,9 @@ | ||
var packagesArray = getPackages(); | ||
var sourcemapsOutput = output; | ||
if(sourcemapsOutput.indexOf('./') == 0) { | ||
sourcemapsOutput = "." + sourcemapsOutput; | ||
} | ||
else if(sourcemapsOutput.indexOf('../') == 0) { | ||
sourcemapsOutput = "./" + output.replace("../", ""); | ||
} | ||
@@ -45,3 +52,3 @@ gulp.src(packagesArray) | ||
.pipe(rename(filename)) | ||
.pipe(gulpif(maps != "false", sourcemaps.write(output))) | ||
.pipe(gulpif(maps != "false", sourcemaps.write(sourcemapsOutput))) | ||
.pipe(gulp.dest(output)); | ||
@@ -58,3 +65,3 @@ | ||
.pipe(rename(filename)) | ||
.pipe(gulpif(maps != "false", sourcemaps.write(output))) | ||
.pipe(gulpif(maps != "false", sourcemaps.write(sourcemapsOutput))) | ||
.pipe(gzip()) | ||
@@ -71,3 +78,3 @@ .pipe(gulp.dest(output)); | ||
var output = getPath(); | ||
return gulp.src(output + '*.css*').pipe(clean({ read: false, force: true })); | ||
return gulp.src(output + '*.scss*').pipe(clean({ read: false, force: true })); | ||
}); | ||
@@ -101,3 +108,3 @@ | ||
if (!output) { | ||
return './' | ||
return './dist' | ||
} | ||
@@ -104,0 +111,0 @@ return output; |
{ | ||
"name": "fluent-css", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "write fluent css", | ||
@@ -6,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
12289777
237.37%23
27.78%105
7.14%