From 31b8e7ed47329a5d4490d08510cf9d8a60f85e72 Mon Sep 17 00:00:00 2001 From: Tim Huff Date: Mon, 5 Feb 2018 03:43:43 -0600 Subject: [PATCH] Indicate how to import fonts (#3676) Got this fix from issue #2302. Libraries like `font-awesome` are pretty common. Indicating how to get them to work should be indicated in the `README.md` (if not added to the example) --- examples/with-global-stylesheet/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/with-global-stylesheet/README.md b/examples/with-global-stylesheet/README.md index 21241d2c..63432bb7 100644 --- a/examples/with-global-stylesheet/README.md +++ b/examples/with-global-stylesheet/README.md @@ -60,3 +60,7 @@ This project shows how you can set it up. Have a look at: Please, report any issue on enhancement related to this example to its original github repository https://github.com/davibe/next.js-css-global-style-test + +## If your stylesheets import fonts + +Install `postcss-url` and insert `require('postcss-url')({ url: 'inline' })` as the 2nd element of the `plugins` array in `postcss.config.js`.