vite-plugin-libcss
vite-plugin-libcss copied to clipboard
This plugin will inject css into bundled js file using import statement.
# Problem The current version of the library assumes that the ES module file is at the root (/dist) folder and injects the CSS import statement. This import fails to...
我自己写了一个组件vue3-puzzle-vcode 生成出的文件里确实多了一行`import './main.css'`; 一切都很顺利,用也没有问题。 直到有一天我使用了nuxt3框架,本地运行没有问题,但是打包的时候会提示找不到`main.css`; ``` Could not load raw:./main.css (imported by node_modules/.pnpm/[email protected]/node_modules/vue3-puzzle-vcode/dist/vue3-puzzle-vcode.es.js): ENOENT: no such file or directory, open './main.css' ``` 我不知道该如何配置,大佬有空帮看看这是啥原因啊
This issue provides visibility into Renovate updates and their statuses. [Learn more](https://docs.renovatebot.com/key-concepts/dashboard/) ## Open These updates have all been created already. Click a checkbox below to force a retry/rebase of...
Show "[lib-css] minimatch is not a function" error in Vite 5. So, you can use [@bimdata/vite-plugin-libcss](https://www.npmjs.com/package/@bimdata/vite-plugin-libcss) instead
![Uploading 264AAE9D-C9B7-4FB6-8218-2CA534314CD8.png…]()
I am generating a source map for the lib to enable easy debugging: ```js export default defineConfig({ build: { minify: false, sourcemap: true, lib: { // ... }, }, })...