Polymer / tools

Polymer Tools Monorepo
BSD 3-Clause "New" or "Revised" License
430 stars 200 forks source link

how to bundle Roboto web font? #1258

Closed cordovapolymer closed 5 years ago

cordovapolymer commented 7 years ago

How to instruct polymer build to bundle Roboto and other external resources? In polymer starter kit 1.0 gulp copy task has been doing this.

cordovapolymer commented 7 years ago

@rictic bump!

mgibas commented 7 years ago

U can use extraDependencies in polymer.json. Thats how

    "manifest.json",
    "bower_components/webcomponentsjs/webcomponents-lite.min.js"

are copied to output folder.

FredKSchott commented 7 years ago

Yup, see the note on extraDependencies in the README: https://github.com/Polymer/polymer-build#projectdependencies

cordovapolymer commented 7 years ago

@mgibas @FredKSchott I'm talking about https://github.com/Polymer/font-roboto , I include it with <link rel="import"> and it loads the font from google servers. I don't see how extraDependencies are releted to this polymer element.

web-padawan commented 7 years ago

@cordovapolymer use font-roboto-local if you need to have fonts served from your project. polymer-build doesn't bundle external resources, and unlikely to be able to.

cordovapolymer commented 7 years ago

@web-padawan thanks!