Skip to content

Commit 965907b

Browse files
leedawnsxzz
authored andcommitted
fix(vite-vue3): update include regex to support production build (unplugin#682)
1 parent b9fc5f7 commit 965907b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/vite-vue3/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"private": true,
55
"scripts": {
66
"dev": "cross-env DEBUG=unplugin-vue-components:* vite",
7-
"build": "cross-env DEBUG=unplugin-vue-components:* vite build"
7+
"build": "cross-env DEBUG=unplugin-vue-components:* vite build",
8+
"preview": "cross-env DEBUG=unplugin-vue-components:* vite preview"
89
},
910
"dependencies": {
1011
"vant": "^4.6.2"

examples/vite-vue3/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const config: UserConfig = {
2626
directoryAsNamespace: true,
2727
dts: true,
2828
globalNamespaces: ['global'],
29-
include: [/\.vue$/, /\.md$/],
29+
include: [/\.vue($|\?)/, /\.md($|\?)/],
3030
resolvers: [
3131
(name) => {
3232
if (name === 'MyCustom')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy