我使用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>