Skip to content

Commit

Permalink
新增npm模块cheerio,用于处理html
Browse files Browse the repository at this point in the history
  • Loading branch information
aiselp committed May 17, 2023
1 parent 4a0921f commit 7176f5a
Showing 1 changed file with 3,289 additions and 0 deletions.
Loading

3 comments on commit 7176f5a

@SuperMonster003
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

下载了最新 cheerio 项目, 用 Webpack 鼓捣半天, 导入到 Auto.js 就报错.
试了一下大神的模块, 一次就成功了.
大神能分享一下 Webpack 的打包配置吗, 感谢. 😄

@aiselp
Copy link
Owner

@aiselp aiselp commented on 7176f5a May 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

下载了最新 cheerio 项目, 用 Webpack 鼓捣半天, 导入到 Auto.js 就报错. 试了一下大神的模块, 一次就成功了. 大神能分享一下 Webpack 的打包配置吗, 感谢. 😄

我用的是ncc打包成单文件,如果有es6代码就用babel把转成es5,像这样很多没有环境依赖的库就都可以使用了

@SuperMonster003
Copy link

@SuperMonster003 SuperMonster003 commented on 7176f5a May 28, 2023 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.