jprichardson / node-fs-extra

Node.js: extra methods for the fs object like copy(), remove(), mkdirs()
MIT License
9.44k stars 776 forks source link

File is not getting copy when @import statement is there in css file #956

Closed AvinashDalvi89 closed 1 year ago

AvinashDalvi89 commented 2 years ago

Trying this command fs.copySync('sourcefile.css', '/dummy/sourcefile.css'); where

source file is having @import statement as content like sourcefile.css

@import 'framework-classic-all_01.css';@import 'framework-classic-all_02.css';

If I remove @Import statement it work well. Only creating problem for @import statement.

RyanZim commented 2 years ago

The contents of the file should have no bearing on this. What kind of problem are you having?

AvinashDalvi89 commented 2 years ago

This files are not getting copy using copySync.

RyanZim commented 2 years ago

Is there an error? Is it failing silently?

AvinashDalvi89 commented 2 years ago

Yeah there is not error only that file is not copied due to that further copy command is getting stuck.

RyanZim commented 2 years ago

copy command is getting stuck

What do you mean by "stuck"? Is the copy command hanging?

RyanZim commented 2 years ago

Also, what happens if you use fs.copyFile?

RyanZim commented 1 year ago

Closing for lack of response.