webpack.config.js 790 B

12345678910111213141516171819202122
  1. module.exports = {
  2. entry: './lib/index',
  3. output: {
  4. path: 'assets',
  5. filename: 'bundle.js'
  6. },
  7. resolve: {
  8. extensions: ['', '.js', '.jsx']
  9. },
  10. module: {
  11. loaders: [
  12. { test: /\.css$/, loader: "style!css" },
  13. { test: /\.jsx$/, loaders: ["react-hot", "jsx"] },
  14. // for bootstrap stuff
  15. { test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff" },
  16. { test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/octet-stream" },
  17. { test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file" },
  18. { test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=image/svg+xml" }
  19. ]
  20. }
  21. };