module: {
loaders: [
{
test: /\.jsx?$/,
include: [
path.resolve(__dirname, '../node_modules/react-routing/src'),
path.resolve(__dirname, '../src')
],
loaders: [...(WATCH && ['react-hot']), 'babel-loader'],
}, {
test: /\.json$/,
loader: 'json-loader',
}, {
test: /\.txt$/,
loader: 'raw-loader',
}, {
test: /\.(png|jpg|jpeg|gif|svg|woff|woff2)$/,
loader: 'url-loader?limit=10000',
}, {
test: /\.(eot|ttf|wav|mp3)$/,
loader: 'file-loader',
}, {
test: /\.css$/,
loader: 'style-loader/useable!css-loader!postcss-loader',
},
],
},
Hey folks,
I wish to import bootstrap with webpack. My App.css got the following import:
@import '../../../node_modules/bootstrap/dist/css/bootstrap.css';And this is my loader:
But I've got errors that fonts couldn't be found: