add mp4 support

This commit is contained in:
MathieuG-P
2022-06-03 22:00:02 +02:00
parent 30818fa8e2
commit 873cf5fd44
3 changed files with 10 additions and 5 deletions
+2 -2
View File
@@ -91,7 +91,7 @@ const configuration: webpack.Configuration = {
test: /\.s?css$/,
use: [
'style-loader',
'css-loader',
'css-loader',
'sass-loader',
{
loader: 'postcss-loader',
@@ -111,7 +111,7 @@ const configuration: webpack.Configuration = {
},
// Images
{
test: /\.(png|svg|jpg|jpeg|gif)$/i,
test: /\.(png|svg|jpg|jpeg|gif|mp4)$/i,
type: 'asset/resource',
},
],
+3 -3
View File
@@ -72,8 +72,8 @@ const configuration: webpack.Configuration = {
{
test: /\.s?(a|c)ss$/,
use: [
MiniCssExtractPlugin.loader,
'css-loader',
MiniCssExtractPlugin.loader,
'css-loader',
'sass-loader',
{
loader: 'postcss-loader',
@@ -93,7 +93,7 @@ const configuration: webpack.Configuration = {
},
// Images
{
test: /\.(png|svg|jpg|jpeg|gif)$/i,
test: /\.(png|svg|jpg|jpeg|gif|mp4)$/i,
type: 'asset/resource',
},
],
+5
View File
@@ -10,6 +10,11 @@ declare module '*.png' {
export default content;
}
declare module '*.mp4' {
const content: string;
export default content;
}
declare module '*.jpg' {
const content: string;
export default content;