Skip to content

Instantly share code, notes, and snippets.

@rolldone
Last active February 28, 2020 23:54
Show Gist options
  • Save rolldone/ad9da2594bd3532dfb5b1c767daeb7b4 to your computer and use it in GitHub Desktop.
Save rolldone/ad9da2594bd3532dfb5b1c767daeb7b4 to your computer and use it in GitHub Desktop.
webpack test Regex cheat
.*[^a]$ = "kecuali a"
.*[a]$ = "harus a"
/^["filter"]{"length"}$/ = base regex
# Kedua kode ini harus ada dengan module yang berbeda
- Ambil keluarkan dari node_modules yang mengandung moment
/[\\/]node_modules[\\/]((moment|module_lain).*)[\\/]/
- Jangan mengambil yang mengandung moment
/[\\/]assets[\\/]((?!moment|module_lain).*)[\\/]/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment