colouring-montreal/app/razzle.config.js
2018-09-09 22:22:44 +01:00

14 lines
356 B
JavaScript

module.exports = {
modify: (config, { target, dev }, webpack) => {
// load webfonts
rules = config.module.rules || [];
rules.push({
test: /\.(eot|svg|ttf|woff|woff2)$/,
loader: 'file-loader?name=public/fonts/[name].[ext]'
})
config.module.rules = rules;
return config;
},
};