Prepare sliders, need to be fully completed and tested
This commit is contained in:
31
vite.config.ts
Normal file
31
vite.config.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import {
|
||||
defineConfig
|
||||
} from 'vite';
|
||||
import dts from 'vite-plugin-dts';
|
||||
import {
|
||||
resolve
|
||||
} from 'node:path';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig( {
|
||||
'plugins': [
|
||||
vue(),
|
||||
dts()
|
||||
],
|
||||
'build': {
|
||||
'lib': {
|
||||
'entry': resolve( __dirname, 'src/index.ts' ),
|
||||
'name': 'TestComponent',
|
||||
'fileName': 'test-component',
|
||||
},
|
||||
'rollupOptions': {
|
||||
'external': [ 'vue' ],
|
||||
'output': {
|
||||
'globals': {
|
||||
'vue': 'Vue',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
} );
|
||||
Reference in New Issue
Block a user