idk
This commit is contained in:
parent
257caeb1e4
commit
eecaaea9dd
|
|
@ -90,7 +90,7 @@ out
|
||||||
|
|
||||||
# Nuxt.js build / generate output
|
# Nuxt.js build / generate output
|
||||||
.nuxt
|
.nuxt
|
||||||
dist
|
#dist
|
||||||
|
|
||||||
# Gatsby files
|
# Gatsby files
|
||||||
.cache/
|
.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 { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill';
|
||||||
import inject from '@rollup/plugin-inject';
|
import inject from '@rollup/plugin-inject';
|
||||||
import buildConfig from './build.config';
|
import buildConfig from './build.config';
|
||||||
|
import { resolve } from 'path';
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
appType: 'spa',
|
|
||||||
publicDir: false,
|
publicDir: false,
|
||||||
base: buildConfig.base,
|
base: buildConfig.base,
|
||||||
server: {
|
|
||||||
port: 8082,
|
|
||||||
host: '127.0.0.1',
|
|
||||||
},
|
|
||||||
plugins: [
|
plugins: [
|
||||||
react()
|
react()
|
||||||
],
|
],
|
||||||
|
|
@ -30,16 +25,15 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
outDir: 'dist',
|
|
||||||
sourcemap: true,
|
|
||||||
copyPublicDir: false,
|
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
plugins: [inject({ Buffer: ['buffer', 'Buffer'] })],
|
plugins: [inject({ Buffer: ['buffer', 'Buffer'] })],
|
||||||
|
|
||||||
},
|
},
|
||||||
lib: {
|
lib: {
|
||||||
entry: './src/index.ts',
|
entry: resolve(__dirname, 'src/index.ts'),
|
||||||
name: 'react-you-ui',
|
name: 'react-you-ui',
|
||||||
fileName: (format) => `react-you-ui.${format}.js`,
|
fileName: (format) => `react-you-ui.${format}.js`,
|
||||||
|
formats: ['es', 'umd'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
Loading…
Reference in New Issue