I'm trying to set up React-Table, which relies on a style sheet that needs to be imported into Webpack with the following statement:
import ReactTable from 'react-table'
Unfortunately, I'm not very familiar with configuring Webpack and am not sure where this line should go. Here's my webpack.config.js file:
const loaders = require('loaders');
module.exports = {
entry: [
'./src/index.js'
],
output: {
path: __dirname,
publicPath: '/',
filename: 'bundle.js',
sourceMapFilename: "bundle.js.map"
},
module: {
loaders: [
loaders.css,
loaders.url,
{
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['react', 'es2015', 'stage-1']
}
}]
},
resolve: {
extensions: ['*', '.js', '.jsx']
},
devServer: {
historyApiFallback: true,
contentBase: './'
}
};
Can anyone point me in the right direction?
loadersfiles as well, thanks.