2

This is a very basic question but I've been struggling with it for a while.

I'm trying to ignore the build and dist folders at the top level of my project. I've read the electron packager docs for ignore but regex just eludes me. I saw this earlier question Regex pattern to ignore multiple folders but the solutions there haven't worked for me.

I've tried the arg below but that seems to also delete all "dist" folders in the project, includng ones in the node_modules folder.

--ignore=dist/*

Little help?

spring
  • 18,009
  • 15
  • 80
  • 160

1 Answers1

1

You can user RegEx alterations to separate each match with a "|" character:

regular expression syntax: --ignore='node_module|dist|embedded\.js'

Cheers.

~G

G Sam
  • 71
  • 2
  • 5