Is there any way to exclude smart edit grunt rush compile from ant build process? This grunt process adds almost 2 extra minutes to ant build compilation to finish.
Hybris exclude Smart Edit grunt from compilation
2.6k Views Asked by Nexussim Lements At
3
There are 3 best solutions below
1

As you are aware from which build.xml macro is getting called, so please comment that macro entry in same build.xml and place in config-->customize directory[it should follow same directory structure of original file]
then run :
ant customize and ant clean all
0

Remove the following directory:
hybris/bin/modules/npm-ancillary/npmancillary/resources/npm/node_modules
Uninstall the addon using the
ant addonunistall
command (optional, because uninstalling the addon without removing the aforementioned folder won't reduce the build time, but, in my opinion, is better to uninstall it, so the developers working on the project won't be confused):ant addonuninstall -Daddonnames=smarteditaddon -DaddonStorefront.yacceleratorstorefront=yourstorefront
The rush build is triggered inside
smartedittools
extension so it will exeute even if you don't have an addon installed in your storefront or if you don't have a storefront at all (e.g. when using decoupled frontend like Spartacus)You can use
smartedittools.only.build.once=true
flag to tell it to build only once, see comment insmartedittools/project.properties
: