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.

4 comments

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

1

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. 

0

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

1

Please sign in to leave a comment.