web-widget / vite-plugin-shadow-dom-css

Use CSS files in shadow dom
MIT License
20 stars 2 forks source link

chore: 构建命令调整 #3

Closed anncwb closed 2 years ago

anncwb commented 2 years ago

当前插件打包后,在 esm 或者 mjs环境内,需要使用如下:

import shadowDomCss  from 'vite-plugin-shadow-dom-css'
plugins:[shadowDomCss.default()]

修改后:

import shadowDomCss  from 'vite-plugin-shadow-dom-css'
plugins:[shadowDomCss()]