yyhappynice
yyhappynice
@developit I want to use `preact-compat` and `typescript `. webpack config : ``` alias: { 'react': 'preact-compat', 'react-dom': 'preact-compat' } ``` but app.tsx `import React from 'react'` fail , command...
I submitted the code [my project](https://github.com/yi-cli/preact) . I didn't find the config mistake. app.tsx file `import React from 'react'` error . Thanks your help~
OK thinks~ I'll have a try `awesome-ts-loader` . Hope there is an official example about typeScript + preact-compat
@plievone At the same time, webpack config need to add ProvidePlugin. Very nice!My project working. thanks ~ ``` new webpack.ProvidePlugin({ React: 'react' }) ```
@shyr1punk Hi you can look at this [demo](https://github.com/yi-cli/preact). May help you~
体验了一下有几个小建议: 1. 可以针对某一段话进行评论和标注,可以展示在文档右侧空白出,包括对评论可以回复交流。 2. 编辑时,斜杠插入更多可以在上方,工具栏增加一个tab入口,不只是快捷键的方式。 3. 增加下载pdf、word能力,包括在安全性上添加水印标识。 4. 新增创建表格能力,对表格诉求比较常见。 5. 编辑完没有保存按钮,感觉不太敢点击返回。 6. 对文档有全屏演示的模式。 7. copy链接较长时没有用文字替换的方式,或者默认获取文档title。 8. 文档最后的更新人可以展示一下。
En I use [px2rem](https://github.com/songsiqi/px2rem) /\*no\*/ comment make 1px not converted rem. So can I use regExp make 1px not converted ? ``` new UglifyJsParallelPlugin({ output: { comments: /\/*no*\//, }, })...