This commit is contained in:
OfficialDakari 2025-04-03 08:55:50 +05:00
parent 257caeb1e4
commit eecaaea9dd
6 changed files with 14022 additions and 11 deletions

2
.gitignore vendored
View File

@ -90,7 +90,7 @@ out
# Nuxt.js build / generate output
.nuxt
dist
#dist
# Gatsby files
.cache/

12271
dist/react-you-ui.es.js vendored Normal file

File diff suppressed because one or more lines are too long

1741
dist/react-you-ui.umd.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/style.css vendored Normal file
View File

@ -0,0 +1 @@
@font-face{font-family:Roboto Flex;src:url(fonts/roboto.ttf) format("truetype")}

4
tsconfig-build.json Normal file
View File

@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": []
}

View File

@ -3,15 +3,10 @@ import react from '@vitejs/plugin-react';
import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill';
import inject from '@rollup/plugin-inject';
import buildConfig from './build.config';
import { resolve } from 'path';
export default defineConfig({
appType: 'spa',
publicDir: false,
base: buildConfig.base,
server: {
port: 8082,
host: '127.0.0.1',
},
plugins: [
react()
],
@ -30,16 +25,15 @@ export default defineConfig({
},
},
build: {
outDir: 'dist',
sourcemap: true,
copyPublicDir: false,
rollupOptions: {
plugins: [inject({ Buffer: ['buffer', 'Buffer'] })],
},
lib: {
entry: './src/index.ts',
entry: resolve(__dirname, 'src/index.ts'),
name: 'react-you-ui',
fileName: (format) => `react-you-ui.${format}.js`,
formats: ['es', 'umd'],
},
},
});