These are chat archives for AngularClass/angular2-webpack-starter

2nd
Jun 2016
Nicolas Forney
@cm0s
Jun 02 2016 12:01
Hey there, what's the best solution to add global css located somewhere in the node_modules folder?
Is there a more "elegent" way to do it?
Mate Balo Bordas
@matesk8
Jun 02 2016 12:14
Hi guys, did anyone manage to setup html2js, for template cacheing in an Angualr 2 project?
Alex
@alvipeo
Jun 02 2016 12:18

hi! can anyone help me out with bootstrap fonts and webpack? have a prj based on webpack-starter and use glyphicons inside buttons. but the icons do not show up. instead getting 404 for these requests:

GET http://192.168.1.2:3000/node_modules/bootstrap/fonts/glyphicons-halflings-regular.woff2 
GET http://192.168.1.2:3000/node_modules/bootstrap/fonts/glyphicons-halflings-regular.woff 
GET http://192.168.1.2:3000/node_modules/bootstrap/fonts/glyphicons-halflings-regular.ttf

I have loaders setup like this:

{test: /\.less$/, loader: 'raw-loader!less-loader'},
      {test: /\.(png|jpg|gif)$/, loader: 'file-loader'},
      //{ test: /\.(png|woff|woff2|eot|ttf|svg)$/, loader: 'url-loader?limit=100000' }
      {
        test: /\.woff(\?v=\d+\.\d+\.\d+)?$/,
        loader: "url?limit=10000&minetype=application/font-woff"
      }, {
        test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/,
        loader: "url?limit=10000&minetype=application/font-woff"
      }, {
        test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
        loader: "url?limit=10000&minetype=application/octet-stream"
      }, {
        test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
        loader: "file"
      }, {
        test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
        loader: "url?limit=10000&minetype=image/svg+xml"
      }
falconmick
@falconmick
Jun 02 2016 12:45
Doesn't angular material have icon support? Why use bootstraps
Alex
@alvipeo
Jun 02 2016 13:02
because angular 2 material2 is far from ready