mirror of
https://github.com/maputnik/editor.git
synced 2026-07-09 15:37:28 +00:00
fadf01a51d
## Launch Checklist This removes the jsonlint build hack that was used for a long time due to json lint part of the style spec package that was missing a fix. This is now no longer needed with the latest style spec package. - [x] Briefly describe the changes in this PR.
26 lines
545 B
TypeScript
26 lines
545 B
TypeScript
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
import istanbul from "vite-plugin-istanbul";
|
|
|
|
export default defineConfig(({ mode }) => ({
|
|
server: {
|
|
port: 8888,
|
|
},
|
|
build: {
|
|
sourcemap: true
|
|
},
|
|
plugins: [
|
|
react(),
|
|
istanbul({
|
|
cypress: true,
|
|
requireEnv: false,
|
|
nycrcPath: "./.nycrc.json",
|
|
forceBuildInstrument: true, //Instrument the source code for cypress runs
|
|
}),
|
|
],
|
|
base: mode === "desktop" ? "/" : "/maputnik/",
|
|
define: {
|
|
global: "window"
|
|
},
|
|
}));
|