How to exclude "node_modules" folder when deploy?


Say I got a client code folder like this:


  -- 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.

Comment actions Permalink

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

Comment actions Permalink

Thanks a lot! :)

Comment actions Permalink

I've turned on:

- external changes
- always upload files

What can cause an node_modules upload of excluded directorys?

Currently with `node_modules` I've currently this issue. It is excluded, but getting completly deployed on every little change.
On another workstation the exclusion works without any problems. 

Comment actions Permalink

Try adding `node_modules` to Exclude items by name: in Settings | Build, Execution, Deployment | Deployment | Options


Please sign in to leave a comment.