Skip to content

Commit

Permalink
fix: crash in windows when import css, Close #35
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Apr 27, 2015
1 parent 4842c60 commit 07f7b3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plugin/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function parser(gfile, options) {
var dep = item.path;

if (util.isLocal(dep)) {
var depFilePath = join(dirname(file.path), dep);
var depFilePath = util.winPath(join(dirname(file.path), dep));
var depFileName = basename(dep);
if (file.pkg.father) {
depFileName = file.pkg.id.replace(/[@\.]/g, '_') + '_' + depFileName;
Expand Down Expand Up @@ -69,7 +69,7 @@ function parser(gfile, options) {
var dep = item.path, depFile;

if (util.isRelative(dep)) {
var depFilepath = join(dirname(file.relative), dep);
var depFilepath = util.winPath(join(dirname(file.relative), dep));
depFile = file.pkg.files[depFilepath];
} else {
depFile = file.getDeps(dep);
Expand Down

0 comments on commit 07f7b3f

Please sign in to comment.