Google App Engine java项目使用node modules来执行繁重的任务,用于构建前端。在我们运行grunt built之后,它会给出要部署的dist文件夹。
我们有以下文件夹结构
myproject
src/
war/
app/
dist/
node_modules/
Gruntfile.js
WEB-INF/我们不想部署node-modules目录。我在appengine-web.xml中添加了以下内容
<static-files>
<exclude path="/node_modules/*.*" />
</static-files>但不起作用。如何将它们排除在部署之外?
发布于 2014-05-06 22:19:42
使用没有“.”的资源文件为我工作过。
<resource-files>
<exclude path="/node_modules/**" />
</resource-files>https://stackoverflow.com/questions/23083216
复制相似问题