Skip to content
This repository has been archived by the owner on Jul 15, 2020. It is now read-only.

[QA] - How to add "awesome font" using self-hosted #56

Closed
minhnguyenwp opened this issue Dec 26, 2017 · 4 comments
Closed

[QA] - How to add "awesome font" using self-hosted #56

minhnguyenwp opened this issue Dec 26, 2017 · 4 comments

Comments

@minhnguyenwp
Copy link

Any way to import Fonts and image in scss. If i put them on a static folder. Pls help me this problem

@mulikaminker
Copy link

Try using static folder. For example:

app.use(express.static('public'))

@iaincollins
Copy link
Owner

Hi @minhnguyenwp, sorry I didn't see this earlier.

Next.js actually serves content from a static folder by default, so if you put them in a folder called "/static/" you can access them from there (e.g. /static/fonts/myfont.tff).

I'll add some example content in there so the project has some for folks to reference.

@minhnguyenwp
Copy link
Author

@iaincollins Thank you. i found out it. but i think if NEXTJS has a kit starter likes "React Kit Starter", it will be more awesome. i have to config many functions with Webpack.

@iaincollins
Copy link
Owner

iaincollins commented Jan 5, 2018

If anyone is interested, the latest version of this starter project now includes Ionicons via NPM and, serves them from /fonts/ionicons/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants