title: Including pdfmake in client side of MEAN-stack project
body: <p>I have a website built on the MEAN.io stack and am trying to generate PDF files on the client side with pdfmake. One can install pdfmake with bower (it looks like they used browserify to generate the client-side version).</p>
  
  <p>I am struggling to get it to work. Either the injection of pdfmake does not work (I assume it cannot be found) or the pdfmake object is undefined (if I don't add pdfmake as a dependancy). I assume pdfmake needs to be packaged in some way to make it accessible, but I don't know how.</p>
  
  <p>In config/assets.json I added:</p>
  
  <pre><code>"bower_components/pdfmake/build/pdfmake.js"
  </code></pre>
  
  <p>In the HTML corresponding to the JS file in which I want to use pdfmake I added:</p>
  
  <pre><code>&lt;script src="bower_components/pdfmake/build/pdfmake.js"&gt;&lt;/script&gt;
  &lt;script src="bower_components/pdfmake/build/vfs_fonts.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I have set up a basic version on <a href="https://github.com/FrankOrtmann/pdfmakeTest.git" rel="nofollow">Github</a>. I would really appreciate it if someone could explain to me how to make it possible to make pdfmake available for use in packages/system/public/controllers/index.js, for example.</p>