mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-30 03:00:51 +01:00
36b203f33a
* Changes * More changes * fix some var names * Fix door mask * Add tilemap back * Begin landscapes * Add vite * Add landscapes * Add texture caching * More changes * Fix flipped plane material cells * Changes * More landscape changes * Fix PlaneMaterialCell tiling * Add more caching * Destroy BaseRenderTexture * Performance improvements * More improvements * More improvements * Cache mask pixels * Fix settings Co-authored-by: dank074 <torresefrain10@gmail.com>
37 lines
939 B
JavaScript
37 lines
939 B
JavaScript
// vite.config.js
|
|
import typescript from '@rollup/plugin-typescript';
|
|
import { resolve } from 'path';
|
|
import { defineConfig } from 'vite';
|
|
import { ViteMinifyPlugin } from 'vite-plugin-minify';
|
|
|
|
const resolvePath = str => resolve(__dirname, str);
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
typescript({
|
|
'target': 'es6',
|
|
'rootDir': resolvePath('./src'),
|
|
'declaration': true,
|
|
exclude: resolvePath('./node_modules/**'),
|
|
allowSyntheticDefaultImports: true
|
|
}),
|
|
ViteMinifyPlugin()
|
|
],
|
|
build: {
|
|
lib: {
|
|
entry: resolve(__dirname, 'src/index.ts'),
|
|
name: 'nitro-renderer',
|
|
fileName: 'nitro-renderer'
|
|
}
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, 'src'),
|
|
'~': resolve(__dirname, 'node_modules')
|
|
}
|
|
},
|
|
server: {
|
|
host: '127.0.0.1'
|
|
}
|
|
});
|