MellowCo / unplugin-attributify-to-class

css attributify mode to class, support use in vite, rollup, webpack
https://www.npmjs.com/package/unplugin-attributify-to-class
MIT License
20 stars 3 forks source link

此插件,不能适配taro.js #1

Closed 729902288 closed 2 years ago

729902288 commented 2 years ago

您好,由于taro v3.5x打包工具,目前还是webpack5。此插件只有vite版的,不能适用taro,能否增加一个webpack的支持? 配置及出错信息如下: import transformWeClass from 'unplugin-transform-we-class/webpack'; import presetAttributifyWechat,{defaultAttributes} from 'unplugin-unocss-attributify-wechat/webpack';

webpackChain(chain) { chain.plugin("transformWeClass").use(transformWeClass()); chain.plugin('presetAttributifyWechat').use(presetAttributifyWechat());
},

image

MellowCo commented 2 years ago

import { defaultIgnoreNonValuedAttributes, presetAttributifyWechat } from 'unplugin-unocss-attributify-wechat/webpack' 我的,readme忘更新了 uniapp ,taro 使用文档,见 github 掘金