Skip to content
Snippets Groups Projects
Commit f5289ba5 authored by Midhun Suresh's avatar Midhun Suresh
Browse files

Rename defined constant

parent 1f590f58
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,6 @@ module.exports = defineConfig({
assetsInlineLimit: 0,
},
define: {
cssFileName: cssLink.replace(/assets\//, ""),
CSS_FILE_NAME: cssLink.replace(/assets\//, ""),
}
});
......@@ -46,7 +46,7 @@ function renderStartButton() {
function loadCSS() {
const linkElement = document.createElement("link") as HTMLLinkElement;
linkElement.rel = "stylesheet";
const urlFixed = new URL("cssFileName", parentRootHost);
const urlFixed = new URL("CSS_FILE_NAME", parentRootHost);
linkElement.href = urlFixed.href;
document.head.appendChild(linkElement);
}
......
......@@ -6,7 +6,7 @@ module.exports = defineConfig(({ command }) => {
return {
// dev specific config
define: {
cssFileName: JSON.stringify("parent-style.css"),
CSS_FILE_NAME: JSON.stringify("parent-style.css"),
},
};
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment