node-fs-extra icon indicating copy to clipboard operation
node-fs-extra copied to clipboard

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

Open AvinashDalvi89 opened this issue 2 years ago • 6 comments

  • Operating System: Mac OS Monterey
  • Node.js version: v14.19.1
  • fs-extra version: 9.0.1

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.

AvinashDalvi89 avatar Apr 12 '22 20:04 AvinashDalvi89

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

RyanZim avatar Apr 12 '22 21:04 RyanZim

This files are not getting copy using copySync.

AvinashDalvi89 avatar Apr 13 '22 10:04 AvinashDalvi89

Is there an error? Is it failing silently?

RyanZim avatar Apr 13 '22 15:04 RyanZim

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

AvinashDalvi89 avatar Apr 13 '22 15:04 AvinashDalvi89

copy command is getting stuck

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

RyanZim avatar Apr 13 '22 16:04 RyanZim

Also, what happens if you use fs.copyFile?

RyanZim avatar Apr 13 '22 16:04 RyanZim

Closing for lack of response.

RyanZim avatar Oct 20 '22 18:10 RyanZim