postcss / postcss-cli

CLI for postcss
Other
824 stars 93 forks source link

Change filenames for multiple #412

Closed mantismamita closed 2 years ago

mantismamita commented 2 years ago

Hello, I was wondering how/if I could change the name of the file once it was genereated. For example: postcss src/assets/styles/__global.css -o src/assets/styles/global.css would change the filename for one file but I am not able to change the filenames for mutiple files with postcss src/assets/styles/global/__*.css -d src/assets/styles/global/*.css I'm getting an error

[Error: ENOTDIR: not a directory, open '/Users/xx/xx/client/src/assets/styles/global/__light.css/__light.css'] {
  errno: -20,
  code: 'ENOTDIR',
  syscall: 'open',
  path: '/Users/xx/xx/client/src/assets/styles/global/__light.css/__light.css'
}
RyanZim commented 2 years ago

Unfortunately, that's not possible with postcss-cli.

mantismamita commented 2 years ago

Ok, cheers for the quick response.