Why can't I figure this PUBLIC_URL process env out
This commit is contained in:
parent
dbdc5e5296
commit
e4f6444d35
|
|
@ -1,6 +1,7 @@
|
|||
const insertStylesheet = ({ isRTL, isDark }, cb) => {
|
||||
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.rel = 'stylesheet';
|
||||
link.className = 'theme-stylesheet';
|
||||
|
|
|
|||
Loading…
Reference in New Issue