mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
add mp4 support
This commit is contained in:
@@ -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',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
],
|
||||
|
||||
Vendored
+5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user