Skip to content

🎥 Make videos programmatically with React

Update webpack-config.ts

Jonny Burgerd73c65d692bd
diff --git a/packages/bundler/src/webpack-config.ts b/packages/bundler/src/webpack-config.ts
index 17751fc608..0754971d80 100644
--- a/packages/bundler/src/webpack-config.ts
+++ b/packages/bundler/src/webpack-config.ts
@@ -161,6 +161,18 @@ export const webpackConfig = ({
: null,
].filter(truthy),
},
+ {
+ test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
+ use: [
+ {
+ loader: require.resolve('file-loader'),
+ options: {
+ name: '[name].[ext]',
+ outputPath: 'fonts/',
+ },
+ },
+ ],
+ },
{
test: /\.jsx?$/,
use: [