wplace-tile-dump/vite.config.js
Leon Grünewald 05a5126168 Inital commit
2025-08-15 23:16:29 +02:00

34 lines
849 B
JavaScript

import { defineConfig } from 'vite'
import Userscript from 'vite-userscript-plugin'
import { name, version, description } from './package.json'
import babel from 'vite-plugin-babel'
export default defineConfig((config) => {
return {
build: {
target: 'esnext'
},
plugins: [
babel(),
Userscript({
entry: 'src/index.js',
header: {
name,
version,
description,
match: [
'*://wplace.live/*'
]
},
server: {
port: 3000
}
})
],
css: {
modules: {
localsConvention: 'camelCaseOnly'
}
}
}
})