Why can't I figure this PUBLIC_URL process env out
This commit is contained in:
parent
1120d8be31
commit
f4c71f9778
|
|
@ -1,6 +1,7 @@
|
||||||
const insertStylesheet = ({ isRTL, isDark }, cb) => {
|
const insertStylesheet = ({ isRTL, isDark }, cb) => {
|
||||||
const link = document.createElement('link');
|
const link = document.createElement('link');
|
||||||
link.href = `${process.env.PUBLIC_URL}/css/theme${isDark ? '-dark' : ''}${isRTL ? '-rtl' : ''}.css`;
|
//link.href = `${process.env.PUBLIC_URL}/css/theme${isDark ? '-dark' : ''}${isRTL ? '-rtl' : ''}.css`;
|
||||||
|
link.href = `/css/theme${isDark ? '-dark' : ''}${isRTL ? '-rtl' : ''}.css`;
|
||||||
link.type = 'text/css';
|
link.type = 'text/css';
|
||||||
link.rel = 'stylesheet';
|
link.rel = 'stylesheet';
|
||||||
link.className = 'theme-stylesheet';
|
link.className = 'theme-stylesheet';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue