【发布时间】:2019-04-03 22:22:33
【问题描述】:
我正在从这个例子中学习 Angular 2 https://github.com/pkaul/maven-typescript-example
所以在我运行第三步 (mvn jetty:run) 之后,一个可运行的 war 文件夹将被打包到 example-webapp/target 文件夹中。但是,有一个文件我不确定。 在文件夹 example-webapp/target/example-webapp-0.1.0-SNAPSHOT/modules 下,require.js 文件,旧时间戳为 2013-05-14 .
我想知道它的来源和用途。 我猜该文件与 example-webapp 内的 pom.xml 中定义的 requirejs-maven-plugin 插件有关。地位得到确认或更正。
<plugin>
<groupId>com.github.mcheely</groupId>
<artifactId>requirejs-maven-plugin</artifactId>
<version>1.0.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>optimize</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>true</skip><!-- NOT ENABLED AS A DEFAULT -->
<configFile>${basedir}/src/build/js/optimize.js</configFile>
<filterConfig>true</filterConfig>
</configuration>
</plugin>
【问题讨论】:
标签: javascript angular maven gruntjs