Andrey (azangru) wrote,
Andrey
azangru

Reminder to future self if he wants to bulk rename a bunch of scss files to .module.scss (because CSS modules), and then update the references to those files in the typescript files importing them — this should work:

git grep -l "scss" -- "*.tsx" |  xargs sed -i '' -e 's/\.scss/\.module\.scss/g'


(from a note found after googling for the correct sed syntax)
Subscribe

  • (no subject)

    Wow, I never knew about this cultural reference in the Matrix (near the beginning, when Neo wakes up). A hat tip to postmodernism: (learned…

  • (no subject)

    Yesterday I learned... ...that if you press Ctrl-C in vim in the normal mode, it will actually show you a hint for how to quit vim. All those jokes…

  • (no subject)

    As I've said repeatedly here, Ben is great. He is a smart developer, an engaging conference speaker, and an entertaining conversationalist on…

  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments