<p dir="auto">I am trying to define optional externals in an es6 project.<br>
The feature exists - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="36944069" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/339" data-hovercard-type="issue" data-hovercard-url="/webpack/webpack/issues/339/hovercard" href="https://github.com/webpack/webpack/issues/339">#339</a> , but there is no flag that I can set in the (externals) configuration to make a dependency optional. Digging into the code I found that optional is a flag checking for reasons, and if every reason's dependency is marked as optional. But I can't seem to find where it is defined.</p>
<p dir="auto">What would be the best way to define an external dependency optional? Have I missed something and it is possible doing it using configuration?</p>
<p dir="auto">I npm installed bootstrap version 3.3.6 and imported it into vendor.ts. Everything seems to be working except the glyphicons, specifically .glyphicon-search is only working in safari, but not showing up in Chrome and Firefox. In Chrome in dev tools, I can see it finds the source.</p>
<p dir="auto">I have these errors in my console:</p>
<p dir="auto">Failed to decode downloaded font: <a href="http://localhost:8080/" rel="nofollow">http://localhost:8080/</a><br>
OTS parsing error: invalid version tag</p>
<p dir="auto">Also trying to import font-awesome 4.5.0. Getting:<br>
Uncaught Error: Cannot find module "../fonts/fontawesome-webfont.eot?v=4.5.0"</p>
<p dir="auto">and</p>
<p dir="auto">./<del>/font-awesome/fonts/fontawesome-webfont.eot?v=4.5.0<br>
Module parse failed: /Users/bryantluu/Projects/Work/fe-client/node_modules/font-awesome/fonts/fontawesome-webfont.eot?v=4.5.0 Line 1: Unexpected token ILLEGAL<br>
You may need an appropriate loader to handle this file type.<br>
(Source code omitted for this binary file)<br>
@ ./</del>/css-loader?sourceMap!./<del>/postcss-loader!./</del>/font-awesome/css/font-awesome.css 6:304-355</p>
<p dir="auto">for all font types. Maybe something wrong with the font loaders?</p>