我正在使用 jawr 来组合和缩小 javascript。但是在 jspo 中,当我包含<jawr:script src="content/js/bundles/home.js">
它产生......
http://localhost:8080/APP_JIG_HEAD/ 999485638 /content/js/bundles/home.js
转到 404。
该数字文件夹在tomcat中的任何地方都不存在。
搜索时仅找到 2 个 home.js
C:\Program Files\Apache Software Foundation\Tomcat 5.5\work\Catalina\localhost\APP_JIG_HEAD\jawrTmp\gzip\content\js\bundles\home.js
C:\Program Files\Apache Software Foundation\Tomcat 5.5\work\Catalina\localhost\APP_JIG_HEAD\jawrTmp\text\content\js\bundles\home.js
我的 jawr.prop 如下。
# Common properties
jawr.debug.on=false
jawr.gzip.on=false
jawr.gzip.ie6.on=false
jawr.charset.name=UTF-8
# Javascript properties and mappings
jawr.js.bundle.basedir=/js
# The remaining scripts will be served sepparately.
jawr.js.bundle.home.id=/content/js/bundles/home.js
jawr.js.bundle.home.mappings=/content/js/MyHomeNew.js, /content/js/MyHome.js