From 93e8cbb11c866a2d5914bef8bcee14fcc29a17ad Mon Sep 17 00:00:00 2001 From: Tarandeep Singh Date: Sun, 18 Aug 2019 08:24:44 +0200 Subject: [PATCH] Added ES6 import It might be confusing for some, to see if this only works with require(). and since ES6 import is now the more standard way, it would be useful to have it there. Thanks --- scripts/templates.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/templates.js b/scripts/templates.js index 031d5e6ce..f25a1a520 100644 --- a/scripts/templates.js +++ b/scripts/templates.js @@ -63,6 +63,8 @@ To use, simply require the package in your project’s entry file e.g. \`\`\`javascript // Load <%= typefaceName %> typeface require('typeface-<%= typefaceId %>') +OR +import 'typeface-<%= typefaceId %>'; \`\`\` ## About the Typefaces project.