GithubHelp home page GithubHelp logo

inline processor 需求 about edp-build HOT 8 OPEN

junmer avatar junmer commented on June 27, 2024
inline processor 需求

from edp-build.

Comments (8)

leeight avatar leeight commented on June 27, 2024

使用 StringReplace 这个大杀器?

from edp-build.

junmer avatar junmer commented on June 27, 2024

StringReplace 实现build当然没啥问题, 开发阶段ws还需要 一个 inline-handler,来干这个事
所以希望这个 配置写在html里,这样handler也从这里读文件

from edp-build.

junmer avatar junmer commented on June 27, 2024

@leeight @firede @treelite 请看下,这个接口设计是否合理,合理的话,我就开撸啦?

from edp-build.

treelite avatar treelite commented on June 27, 2024

👌 倾向使用注释的方式,另外可以考虑提供配置支持嵌入代码的压缩与否,方便调试

from edp-build.

junmer avatar junmer commented on June 27, 2024

etpl 节奏么

<!-- include: xxx.xxx -->

from edp-build.

firede avatar firede commented on June 27, 2024

https://github.com/ecomfe/edp/wiki/Package-Management#%E5%AF%BC%E5%85%A5%E5%B9%B6%E4%BD%BF%E7%94%A8%E5%8C%85

这个链接再往下翻一点,记得有使用注释风格的先例。

from edp-build.

zengjialuo avatar zengjialuo commented on June 27, 2024

是不是可以借鉴 fis 的做法,在 html 里加 __inline 标志,这样就不用在 webServer 里再处理了
(逃

from edp-build.

junmer avatar junmer commented on June 27, 2024

今天 实现了一个

<!-- edp-inline: xxx.xxx -->

build 没问题,但是 实现 webserver 发现个坑,因为 搞不定.less这类预编译的文件

删掉 重来 ( ╯-_-)╯┴—┴

这次,参考 @zengjialuo 的建议,这样搞的

<link data-inline rel="stylesheet" href="./src/css/path-mapper.css">
<script data-inline src="./src/foo.js"></script>

并且提供 自定义配置 data-inline 属性

from edp-build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.