colouring-montreal/app/razzle.config.js
Maciej Ziarkowski c92c4cded3 Setup TS build (failing), rename files to .ts/.tsx
The TypeScript build currently runs but fails for a number of files.
This commit only contains rename operations on the source files.
2019-08-09 15:44:11 +01:00

15 lines
385 B
JavaScript

module.exports = {
plugins: ['typescript'],
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;
},
};