Ant-Build-Script不会从index.html中删除less.js引用

时间:2012-09-09 11:51:37

标签: less html5boilerplate

我使用html5boilerplate ant-build-script

对于css我使用less,这就是我绑定它的方式:

<!-- <link rel="stylesheet" href="less/style.css"> -->
<!-- Less: Nur für Dev Setup -->
<link rel="stylesheet/less" type="text/css" href="css/style.less">
<script src="less/less-1.3.0.min.js" type="text/javascript"></script>

<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr-2.6.2.min.js"></script>

构建脚本仅更改* .less - &gt; * .css但在html中留下了less.js.

对于cfg,我将这两行添加到build / config / project.properties

build.css.less = true
file.root.stylesheet = style.less

有没有办法,这条线会从index.html中删除?

<script src="less/less-1.3.0.min.js" type="text/javascript"></script>

1 个答案:

答案 0 :(得分:0)