We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d479be5 commit bd389b3Copy full SHA for bd389b3
packages/@headlessui-vue/package.json
@@ -21,7 +21,7 @@
21
},
22
"scripts": {
23
"playground": "vite serve examples",
24
- "playground:build": "vite build examples",
+ "playground:build": "NODE_ENV=production vite build examples",
25
"build": "../../scripts/build.sh",
26
"test": "../../scripts/test.sh",
27
"lint": "../../scripts/lint.sh"
packages/@headlessui-vue/vite.config.js
@@ -48,7 +48,10 @@ const TailwindUIPlugin = ({
48
49
module.exports = {
50
alias: {
51
- '/@headlessui/vue/': path.resolve(__dirname, './src/index.ts'),
+ [process.env.NODE_ENV === 'production' ? '@headlessui/vue' : '/@headlessui/vue/']: path.resolve(
52
+ __dirname,
53
+ './src/index.ts'
54
+ ),
55
56
configureServer: [TailwindUIPlugin],
57
}
0 commit comments