Skip to content

Commit

Permalink
Merge pull request #87 from appleboy/bugs/error_file_path
Browse files Browse the repository at this point in the history
update to origin file path.
  • Loading branch information
appleboy committed Nov 22, 2014
2 parents 5dcf125 + 52a7e46 commit 5790803
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ module.exports = function(opt) {
return cb(new gutil.PluginError(PLUGIN_NAME, stdout || 'Compass failed', {fileName: file.path}));
}

var relPathToSass = path.relative(path.resolve(opt.project, opt.sass), file.path);
file.contents = null;
file.path = path.resolve(opt.css, gutil.replaceExtension(relPathToSass, '.css'));
file.path = gutil.replaceExtension(file.path, '.css');

fs.readFile(pathToCss, function (err, contents) {
if (err) {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gulp-compass",
"version": "2.0.2",
"version": "2.0.3",
"description": "Compile Compass files",
"main": "index.js",
"repository": {
Expand Down Expand Up @@ -38,8 +38,8 @@
"del": "^0.1.3",
"gulp": "^3.8.10",
"gulp-jshint": "^1.9.0",
"gulp-mocha": "^1.1.1",
"iconv-lite": "^0.4.4",
"gulp-mocha": "^1.1.2",
"iconv-lite": "^0.4.5",
"jshint-stylish": "^1.0.0",
"map-stream": "0.0.5",
"mocha": "^2.0.1",
Expand Down

0 comments on commit 5790803

Please sign in to comment.