Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我会使用 gulp-bless 插件来分离 bower CSS 文件,因为生成的缩小文件太长并且在 IE 9 中没有完全处理。
但是 gulp-bless 插件生成的文件不会被 gulp-useref 插件替换在“index.html”文件中。
gulp useref 插件也不能加入所有文件,会保留 gulp-bless 插件生成的结构。
文件“index.html”(css 导入和 useref)
文件“gulpfile.js”(构建任务的一部分)
文件“index.html”(dist)
生成的 dist 文件
有人有什么想法吗?
通过删除sourceMap解决。