-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMDCT-3657 - swap react-scripts to vite (#11702)
- Loading branch information
1 parent
7ca5df3
commit 6f75db1
Showing
9 changed files
with
987 additions
and
5,249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="description" content="Medicaid Data Collection Tool" /> | ||
<meta name="theme-color" content="#ffffff" /> | ||
<title>Managed Care Reporting</title> | ||
<script src="/env-config.js"></script> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32" /> | ||
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16" /> | ||
<!-- Tealium Analytics Tag Manager --> | ||
<script> | ||
var tealiumEnvMap = { | ||
"mdctmcr.cms.gov": "prod", | ||
"mdctmcrval.cms.gov": "qa", | ||
}; | ||
var tealiumEnv = tealiumEnvMap[window.location.hostname] || "dev"; | ||
var tealiumUrl = `https://tags.tiqcdn.com/utag/cmsgov/cms-general/${tealiumEnv}/utag.sync.js`; | ||
document.write(`<script src="${tealiumUrl}" async><\/script>`); | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<!-- Tealium Analytics Tag Manager --> | ||
<script> | ||
window.utag_cfg_ovrd = { noview: true }; | ||
</script> | ||
<script> | ||
(function (t, e, a, l, i, u, m) { | ||
t = "cmsgov/cms-general"; | ||
e = tealiumEnv; | ||
a = "/" + t + "/" + e + "/utag.js"; | ||
l = "//tags.tiqcdn.com/utag" + a; | ||
i = document; | ||
u = "script"; | ||
m = i.createElement(u); | ||
m.src = l; | ||
m.type = "text/java" + u; | ||
m.async = true; | ||
l = i.getElementsByTagName(u)[0]; | ||
l.parentNode.insertBefore(m, l); | ||
})(); | ||
</script> | ||
<div id="root"></div> | ||
<script type="module" src="/src/index.tsx"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/// <reference types="vite/client" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { defineConfig } from "vite"; | ||
import react from "@vitejs/plugin-react"; | ||
import viteTsconfigPaths from "vite-tsconfig-paths"; | ||
|
||
export default defineConfig({ | ||
base: "/", | ||
plugins: [react(), viteTsconfigPaths()], | ||
server: { | ||
open: true, | ||
port: 3000, | ||
}, | ||
define: { | ||
global: "globalThis", | ||
}, | ||
build: { | ||
outDir: "./build", | ||
}, | ||
}); |
Oops, something went wrong.