Maven: frontend-maven-plugin add context path to the index.html

Just add run build — –base-href ${servlet.context.path} as configuration argument in order to change the index.html context path. ${servlet.context.path} is a maven property.

<properties>
    <servlet.context.path>/spring-boot-servlet-context-path/</servlet.context.path>
</properties>
...
<plugin>
	<groupId>com.github.eirslett</groupId>
	<artifactId>frontend-maven-plugin</artifactId>
 ...
		<execution>
			<id>build</id>
			<goals>
				<goal>npm</goal>
			</goals>
			<configuration>
				<arguments>run build -- --base-href ${servlet.context.path}</arguments>
			</configuration>
			<phase>generate-resources</phase>
		</execution>
...
</plugin>