我目前正在使用EXTJS 4.1.1(GPL)和sencha cmd 4.0。我正在尝试按照指南中的说明将我的应用程序构建到生产中。不幸的是,我有一个错误,说“混合模式x-compile和微负载标记目前不受支持”。
任何有关如何使用extjs 4.1.1构建生产的帮助表示赞赏。
谢谢
答案 0 :(得分:2)
在index.html文件中的文件引用中使用单引号会导致此问题。改变这个:
<!-- <x-compile> -->
<!-- <x-bootstrap> -->
<link rel='stylesheet' href='bootstrap.css'>
<script src='ext/ext-all.js'></script>
<script src='bootstrap.js'></script>
<!-- </x-bootstrap> -->
<script src='app.js'></script>
<!-- </x-compile> -->
到
<!-- <x-compile> -->
<!-- <x-bootstrap> -->
<link rel="stylesheet" href="bootstrap.css">
<script src="ext/ext-all.js"></script>
<script src="bootstrap.js"></script>
<!-- </x-bootstrap> -->
<script src="app.js"></script>
<!-- </x-compile> -->
这解决了我的问题。