All our Angular applications are bootstrapped in other applications (.jsp
files which load the javascript files and include the <app-root>
tag), so we have no need for an index.html
**.
However when I remove the index
property from our angular.json
it gives me the error:
Data path "" should have required property 'index'.
If I leave it empty it does build but I get the error:
...
95% emitting index-html-webpack-pluginEISDIR: illegal operation on a directory, read
Error: EISDIR: illegal operation on a directory, read
How can I perform an ng build
without the index.html
?
** our deploy process now actually copies the index.html
to our CDN which is unwanted since we don't want to serve these files to the end users at all, the index.html
is only used for developers during ng serve