idk
This commit is contained in:
parent
257caeb1e4
commit
eecaaea9dd
|
|
@ -90,7 +90,7 @@ out
|
|||
|
||||
# Nuxt.js build / generate output
|
||||
.nuxt
|
||||
dist
|
||||
#dist
|
||||
|
||||
# Gatsby files
|
||||
.cache/
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
|||
@font-face{font-family:Roboto Flex;src:url(fonts/roboto.ttf) format("truetype")}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"include": []
|
||||
}
|
||||
|
|
@ -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'],
|
||||
},
|
||||
},
|
||||
});
|
||||
Loading…
Reference in New Issue