1234567891011121314151617181920212223 |
- 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: /\.woff2(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff" },
- { 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" }
- ]
- }
- };
|