简体   繁体   English

gulp-useref不要将我的远程托管文件构建到min.js中

[英]gulp-useref don't build my remote hosted files into min.js

Hi I try to build all css and js into /dist/ but I only have the local file... why useref don't download ands put my jquery cdn from google into ma min.js 嗨,我尝试将所有css和js都构建到/ dist /中,但是我只有本地文件...为什么useref不下载ands将Google的jQuery CDN放入ma min.js

please there is solution for this (I don't really want to use an package manager as bower) I prefer gulp-useref do this work... idea? 请为此提供解决方案(我不是真的想使用软件包管理器作为凉亭)我更喜欢gulp-useref来完成这项工作...这个主意吗?

It only works on relative url's, not absolute url's. 它仅适用于相对网址,而不适用于绝对网址。 It does not have the ability to download remote files and compile them, and that's always risky anyway. 它没有下载远程文件并进行编译的能力,而且总会有风险。 You should import these assets from a package manager and compile them that way. 您应该从程序包管理器导入这些资产,然后以这种方式进行编译。 That's the only way that gulp-useref currently supports. 这是gulp-useref当前支持的唯一方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM