How to exclude "node_modules" folder when deploy?

Answered

Say I got a client code folder like this:

WebRoot

  -- css

  -- core(or dist)

  -- img

  -- node_modules

  -- ...

 

currently, I config Web Resource Directories like this:

 

I do this only because I want exclude the "node_modules" folder when deploy. So I wonder is there a convenient way to only config the "WebRoot" folder as Web Resorce Directory, and exclude the "node_modules" folder.

Best Regards.

2 comments

Exclude directory from web resource root you can only via marking it as Excluded directory.

1

Please sign in to leave a comment.