title: How do I get the webpack publicPath
body: <p>I'm using the following code add icons to the MdIconRegistry: </p>
  
  <pre><code>constructor(iconRegistry: MdIconRegistry, sanitizer: DomSanitizer) {
    iconRegistry.addSvgIconSet(
      sanitizer.bypassSecurityTrustResourceUrl('/assets/svg-sprite-action-symbol.svg'));
    iconRegistry.addSvgIconSet(
      sanitizer.bypassSecurityTrustResourceUrl('/assets/svg-sprite-content-symbol.svg'));
    iconRegistry.addSvgIconSet(
      sanitizer.bypassSecurityTrustResourceUrl('/assets/svg-sprite-navigation-symbol.svg'));
  }
  </code></pre>
  
  <p>This unfortunately breaks when using <code>ng [build|serve] --deploy-url=/public/</code>  (In production I would like to deploy the <code>ng build</code> output to a CDN)</p>
  
  <p>Is there a way that I can access the webpack publicPath variable from my angular component so that I can specify the urls for the svg icons relative to that?</p>
  
  <p>I had a look in the <code>ng build</code> output, and I can see the variable is set in <code>inline.bundle.js</code>, but I'm not sure how to correctly access it. </p>
  
  <pre><code>/******/    __webpack_require__.p = "/public/";
  </code></pre>