webpack.config.js 903 B

1234567891011121314151617181920212223
  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: /\.woff2(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff" },
  16. { test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff" },
  17. { test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/octet-stream" },
  18. { test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file" },
  19. { test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=image/svg+xml" }
  20. ]
  21. }
  22. };