Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html中inlinejs 支持没了 #116

Closed
2 tasks done
JoveYu opened this issue Aug 22, 2017 · 5 comments
Closed
2 tasks done

html中inlinejs 支持没了 #116

JoveYu opened this issue Aug 22, 2017 · 5 comments

Comments

@JoveYu
Copy link

JoveYu commented Aug 22, 2017

运行环境

  • 操作系统 & 版本:macOS (10.12.6)
  • WeFlow 版本: v1.3.3

反馈具体描述:

之前html里面支持inlinejs的 最近更新了一下 怎么这个功能没有了

@hzlzh
Copy link
Member

hzlzh commented Aug 22, 2017

是这个问题么?
#104

@JoveYu
Copy link
Author

JoveYu commented Aug 22, 2017

1.3.2中使用gulp-usemin支持将js编译的时候写入html 如

<!-- build:inlinejs -->
<script src="../lib/angular-min.js"></script>
<script src="../lib/angular-animate-min.js"></script>
<!-- endbuild -->

<!-- build:inlinecss -->
<link rel="stylesheet" href="css/clear.css"/>
<link rel="stylesheet" href="css/main.css"/>
<!-- endbuild -->

而1.3.3使用gulp-useref不支持这种写法 很多之前的代码就编译不过了

@littledu littledu closed this as completed Aug 6, 2018
@JoveYu
Copy link
Author

JoveYu commented Aug 7, 2018

根本没人理

@hzlzh
Copy link
Member

hzlzh commented Aug 8, 2018

上次更新升级之后,解决了 #104 的问题,也不再支持 build:inlinejs 的写法。
如果你的项目需要 inline 的方案,建议看一下这个 jonkemp/gulp-useref#107 里的 gulp-inline-css

对于定制性高的项目,我们建议使用基于命令行的工作流 https://github.com/Tencent/tmt-workflow 方便修改和定制。

或者不使用内联方案:

<!-- build:js ../js/build.js -->
    <script src="../js/1.js"></script>
    <script src="../js/2.js"></script>
<!-- endbuild -->

@JoveYu
Copy link
Author

JoveYu commented Aug 9, 2018

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants