Essentially i want to load my github project through a CDN. (jsdelivr or similar)
this is my repositories https://github.com/shaikatssj/scodec-cdn?files=1
Or i want to host my css js and fonts file and load directly on my webpage.
Related
I am trying to deploy a static website to an s3 bucket. I built my site using the webpack template from vue-cli
When I build the site there is a note that:
Tip: built files are meant to be served over an HTTP server.
Opening index.html over file:// won't work.
Indeed there are no script tags in index.html but there is a comment that:
<!-- built files will be auto injected -->
If I add a path to the JS build file build/build.js I get that error that require cannot be found.
Is there a way to serve this site via s3? If so, how? Thank you
How do I take the JS and CSS source for an app like the Iteration Tracking Board (https://github.com/RallyApps/app-catalog/tree/master/src/apps/iterationtrackingboard) or Release Burndown (https://github.com/RallyApps/app-catalog/tree/master/src/apps/charts/burndown) and turn that into HTML source that can be used as a Custom HTML app in a page in Rally?
Prerequisites:
Node.js
rally-app-builder
After source files are copied to a local directory (you may either fork the app-catalog repo, or download zip from the same location):
in terminal, cd to the app
call this command: rally-app-builder build.
As a result a deploy folder is created with App.html and App-uncompressed.html inside, and App-debug.html is created in the root folder of the app.
Copy/paste App.html or App-uncompressed.html file from deploy folder to the HTML section of the custom page in Rally.
For a css file in a Meteor package, I can request it by going to
localhost:3000/packages/bootstrap/css/bootstrap.css
But for a js file, I can't do this
localhost:3000/packages/bootstrap/js/bootstrap.js
Why is that?
Check the Web Inspector, it should show all of the JS files included on the page and where they are located.
I am using the "ExternalScreen" plugin for phonegap, and I am loading a 'local' html file. This 'local' file won't load any of my 'external' assets. In other words, the HTML file links to JavaScript libraries and CSS Stylesheets, but it is not loading them. Even if I do inline styles, it won't load images.
Any idea why no assets are being loaded outside of the .html page with PhoneGap ExternalScreen?
Thanks!
This was a bug in the "localHTMLResource" function of the plugin, and it has been fixed.
Thanks #andytrice
The architecture of my web application is highly modular. I am using apache tiles as the templating framework. The app modules are bundled as different jar files and put inside WEB-INF/lib folder. So each jar file will contain its own tiles configuration files (containing tiles definitions) and related jsp templates.
I am using CompleteAutoloadTilesListener which is a part of tiles-extras package to read the tiles config files from the jar files. But the jsp files aren't picked up by tiles. When I access any definition, it couldn't find the jsp template file.
A configuration change will solve this problem? or should I subclass any tiles base class to let tiles load jsps from the jar?
Someone else ran into this problem before and even wrote a blog about it
It mentions this issue that is fixed, so you should be able to use the same setup and load your tiles definitions from the classpath.
I haven't tested it, but it looks like a sensible solution.