question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[feature] serve assets

See original GitHub issue

Wondering what is the best approach for serving fonts with bankai. Has anyone tried doing this yet?

Experimenting with sheetify and font-awesome for now.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
yoshuawuytscommented, Nov 6, 2016

ok gonna rename this to “handle assets” because the feature is slightly larger in scope than just fonts

0reactions
goto-bus-stopcommented, Apr 11, 2018

Files in assets/, content/ and public/ folders are served on their respective endpoints. If you want to add remote files like bootstrap you can use a custom index.html file.

<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css">
</head>
<body>
</body>
</html>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Basic Features: Static File Serving - Next.js
Next.js can serve static files, like images, under a folder called public in the root directory. Files inside public can then be referenced...
Read more >
Serve Static Assets - Basic Node and Express - YouTube
In this Basic Node and Express tutorial we serve static assets. This is the second part of four sections where we work to...
Read more >
04 - Serve Static Assets - Basic Node and Express - YouTube
Concepts: app.use() Mounts the specified middleware function or functions at the ... It serves static files and is based on serve -static.
Read more >
Serving assets | Node.js - werf
Serving assets. In this chapter, you will learn how to work with static files and serve them to the client correctly. The application ......
Read more >
Storing and serving static files - App Engine - Google Cloud
Applications often need to serve static files such as JavaScript, images, and CSS in addition to handling dynamic requests. Apps in the standard...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found