12345678910111213141516171819202122 |
- module.exports = {
- entry: './lib/index',
- output: {
- path: 'assets',
- filename: 'bundle.js'
- },
- resolve: {
- extensions: ['', '.js', '.jsx']
- },
- module: {
- loaders: [
- { test: /\.css$/, loader: "style!css" },
- { test: /\.jsx$/, loaders: ["react-hot", "jsx"] },
- // for bootstrap stuff
- { test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff" },
- { test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/octet-stream" },
- { test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file" },
- { test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=image/svg+xml" }
- ]
- }
- };
|