Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
External JS and CSS Files
#5
(04-04-2023, 09:29 AM)baxing Wrote: Hi,

Thank you very much, I tested it and it works.

And if it's the case that I want to link to the css and js files inside the html file, how should I set the path?

<link href="dist/css/mystyle.min.css" rel="stylesheet" />
<script src="assets/myjs.min.js"></script>

I set above this correct or not?
How should the correct path be set?

Hi 

Unfortunately, the only way I could solve this was:
in the ServerController.OnConfig event, my own algorithm modifies the routes in the content of the css/js files. (OnConfig runs only once when ServerController is started.)
The algorithm recognizes the path elements and corrects them.
Reply


Messages In This Thread
External JS and CSS Files - by baxing - 04-01-2023, 04:51 PM
RE: External JS and CSS Files - by baxing - 04-03-2023, 06:11 AM
RE: External JS and CSS Files - by brsoft - 04-04-2023, 07:12 AM
RE: External JS and CSS Files - by baxing - 04-04-2023, 09:29 AM
RE: External JS and CSS Files - by brsoft - 04-05-2023, 06:59 AM
RE: External JS and CSS Files - by baxing - 04-07-2023, 05:08 AM
RE: External JS and CSS Files - by baxing - 04-08-2023, 07:09 AM
RE: External JS and CSS Files - by baxing - 04-10-2023, 03:54 AM
RE: External JS and CSS Files - by baxing - 04-10-2023, 07:17 AM
RE: External JS and CSS Files - by baxing - 04-25-2023, 05:22 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)