Answer the question
In order to leave comments, you need to log in
How to properly exclude .ts files in pom.xml?
Essence of the question:
There is a front-end on Angular + Typescript.
There is a backend in java.
I want to build WAR. The WAR only needs js/map files from the dist folder of the frontend. That is, without typescript sources. How to properly throw them out of the build?
Answer the question
In order to leave comments, you need to log in
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<packagingExcludes>
node_modules/,
bower_components/,
javascript/,
sass/,
package.json,
bower.json,
gulpfile.js,
index.src.html,
WEB-INF/classes/logback-test.xml,
typescript/
</packagingExcludes>
</configuration>
</plugin>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question