1 | const webpack = require('webpack');
|
2 |
|
3 | module.exports = {
|
4 | entry: './src/entry.js',
|
5 | output: {
|
6 | filename: './bundle.js'
|
7 | },
|
8 | module: {
|
9 | rules: [{
|
10 | test: /\.jsx?$/,
|
11 | use: ['babel-loader'],
|
12 | exclude: /node_modules/
|
13 | }, {
|
14 | test: /\.css$/,
|
15 | use: [
|
16 | 'style-loader',
|
17 | 'css-loader?importLoaders=1&modules'
|
18 | ],
|
19 | exclude: /node_modules/
|
20 | }, {
|
21 | test: /\.(jpe?g|png|gif|svg)/,
|
22 | use: ['file-loader'],
|
23 | exclude: /node_modules/
|
24 | }]
|
25 | }
|
26 | };
|