qiwang97

qiwang97

keep study,keep cheerful

Member Since 3 years ago

hangzhou

Experience Points
28
follower
Lessons Completed
396
follow
Lessons Completed
1.3k
stars
Best Reply Awards
47
repos

70 contributions in the last year

Pinned
⚡ demo for nextjs-discussions-14966
⚡ 前端周刊,分享自己每周见到的优质博文
⚡ use redux-persist in taro
⚡ news-feed-remax
⚡ template fro antd-pro with tailwindcss
⚡ Netease Music Demo written by rxjs
Activity
Dec
3
7 hours ago
Dec
2
1 day ago
started
started time in 20 hours ago
Nov
29
4 days ago
Activity icon
issue

qiwang97 issue comment icelam/html-inline-script-webpack-plugin

qiwang97
qiwang97

npm v1.1.5 errors with "Version 2.x only supports webpack 5"

Environment and package version

webpack: v4.x html-inline-script-webpack-plugin: v1.1.5

Reproduction link / code sample

No need to actually run a build, just look at the code for index.js npm installs:

npm i [email protected]^1 -D
cat node_modules/html-inline-script-webpack-plugin/dist/index.js

Or download directly: https://registry.npmjs.org/html-inline-script-webpack-plugin/-/html-inline-script-webpack-plugin-1.1.5.tgz

What is expected?

It should not claim to be version 2 and should not claim that webpack 5 is required

What is actually happening?

It claims to be v2

qiwang97
qiwang97

@icelam I get the error Please upgrade your webpack to version 4 to use this plugin.

Here is my pkgs:

"webpack": "^4.44.1",
    "webpack-bundle-analyzer": "^3.3.2",
    "webpack-cli": "^3.3.12",
    "webpack-dev-server": "^3",
    "webpack-merge": "^4.1.2"

"html-inline-script-webpack-plugin": "^1", //  "version": "1.1.6" in package-lock.json
Activity icon
fork

qiwang97 forked mater1996/vite-plugin-mpx

⚡ Vite plugin of mpx convert to web
qiwang97 MIT License Updated
fork time in 3 days ago
started
started time in 3 days ago
open pull request

qiwang97 wants to merge didi/mpx

qiwang97
qiwang97

feat: support rpx style when transfer to web

支持 wx 转换成 web 时,style 使用 rpx 单位 支持使用方式如下

<view style="width:100rpx;"></view>
<view style="{{style}}"></view>
<view wx:style="{{ {fontSize:'16rpx', fontWeight:'bold'} }}" ></view>
<view wx:style="width:100rpx;"></view>
<view wx:style="{{style}}"></view>
<view wx:style="{{style}}width:100rpx;"></view>

副作用: 全局注入 parseRpxStyle filter

qiwang97
qiwang97

这里是考虑如果是纯静态属性的话,直接编译不走运行时

pull request

qiwang97 merge to didi/mpx

qiwang97
qiwang97

feat: support rpx style when transfer to web

支持 wx 转换成 web 时,style 使用 rpx 单位 支持使用方式如下

<view style="width:100rpx;"></view>
<view style="{{style}}"></view>
<view wx:style="{{ {fontSize:'16rpx', fontWeight:'bold'} }}" ></view>
<view wx:style="width:100rpx;"></view>
<view wx:style="{{style}}"></view>
<view wx:style="{{style}}width:100rpx;"></view>

副作用: 全局注入 parseRpxStyle filter

Nov
27
6 days ago
pull request

qiwang97 pull request didi/mpx

qiwang97
qiwang97

feat: support rpx style when transfer to web

支持 wx 转换成 web 时,style 使用 rpx 单位 支持使用方式如下

<view style="width:100rpx;"></view>
<view wx:style="{{ {fontSize:'16rpx', fontWeight:'bold'} }}" ></view>
<view wx:style="width:100rpx;"></view>
<view wx:style="{{style}}"></view>
<view wx:style="{{style}}width:100rpx;"></view>

副作用: 全局注入 parseRpxStyle filter

push

qiwang97 push qiwang97/mpx

qiwang97
qiwang97

feat: support rpx style when transfer to web

commit sha: 727f2e5c79b758ad0879e891c0ec7a8531455f97

push time in 5 days ago
Activity icon
created branch

qiwang97 in qiwang97/mpx create branch feat/web-rpx

createdAt 5 days ago
Nov
25
1 week ago
started
started time in 1 week ago
Nov
24
1 week ago
Activity icon
fork

qiwang97 forked iException/anka-tracker

⚡ Miniprogram user behavior tracking library. Supports task queues, automatically suspended and retry strategies.
qiwang97 Updated
fork time in 1 week ago
started
started time in 1 week ago
started
started time in 1 week ago
Nov
23
1 week ago
started
started time in 1 week ago
Nov
21
1 week ago
started
started time in 1 week ago
Activity icon
fork

qiwang97 forked ant-mini-program/mini-html-parser

⚡ html parser for rich-text
qiwang97 Updated
fork time in 1 week ago
started
started time in 1 week ago
started
started time in 1 week ago
Activity icon
fork

qiwang97 forked FredZeng/unwxapkg

⚡ unpack wxapkg
qiwang97 MIT License Updated
fork time in 1 week ago
started
started time in 1 week ago
Activity icon
fork

qiwang97 forked csj5588/wxappUnpacker

⚡ @qwerty472123 wxappUnpacker 备份仓库
qiwang97 GNU General Public License v3.0 Updated
fork time in 1 week ago
started
started time in 1 week ago
started
started time in 1 week ago
Previous