EasyUI Forum
May 01, 2024, 12:13:19 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Issues making themes  (Read 4225 times)
chrwei
Full Member
***
Posts: 219


View Profile Email
« on: June 10, 2020, 02:18:18 PM »

Trying to customize colors without breaking npm use, I copied rc-easyui/dist/themes/material to scr/css and changed my index.css
Code:
/*@import '~rc-easyui/dist/themes/material/easyui.css';*/
@import 'css/easyui.css';

this works when I run it (react-scripts start) but when I build and deploy most UI elements are not visible, but if I inspect that page I see they are there.  switching back to @import '~rc-easyui/dist/themes/material/easyui.css'; and build again restores everything.  I haven't even edited any files yet, this is just copying the folder.  what am I missing?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: June 11, 2020, 07:44:09 PM »

You should add this configuration to the 'package.json'.
Code:
"homepage": ".",
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!