现在我的grunt构建将所有连接的js和css放入scripts.xxx.js,vendor.xxx.js,main.xxx.cs和vendor.xxx.cs中。有没有办法让grunt不把代码放到这些文件中,而是将它们直接放到html中?
所以我最终会:
<html>
....
<style>
// all of the stuff in main.xxx.cs and vendor.xxx.cs
</style>
....
<script type="text/javascript">
// all of the stuff in scripts.xxx.js and vendor.xxx.js
</script>
....
</html>
我正在为现有工具编写一个自定义模块,这样就可以轻松部署单个html文件,其中嵌入了所有内容。可以用咕噜声或别的东西来完成吗?有关这种方法的任何想法吗?