Open 2u4uold opened 5 years ago
I need to deploy only bundle files (bundle.js and main-bundle.css) after they were changed (it happens with webpack) to glassfish folder.
bundle.js
main-bundle.css
I tried to use deployOnSave but it deploys src file which was actually saved. I came to this code:
deployOnSave
{ "deploy": { "packages": [{ "name": "Version 1", "description": "Copy files to GF", "files": [ "/bundle.js", "/master-bundle.css" ], "exclude": [ "node_modules/**", "src/**" ], "deployOnSave": ["project"] }], "targets": [ { "type": "local", "name": "project", "description": "Copy files to GF", "dir": "C:/root/to/file" } ] } }
But is works only when I run "Deploy: Deploy workspace" and doesn't work when I save files with "Deploy: Srart/stop listening for remote files".
Is there any way I can run "Deploy: Deploy workspace" on file save?
I need to deploy only bundle files (
bundle.js
andmain-bundle.css
) after they were changed (it happens with webpack) to glassfish folder.I tried to use
deployOnSave
but it deploys src file which was actually saved. I came to this code:But is works only when I run "Deploy: Deploy workspace" and doesn't work when I save files with "Deploy: Srart/stop listening for remote files".
Is there any way I can run "Deploy: Deploy workspace" on file save?