Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
warnyul committed Dec 2, 2024
1 parent 3620c65 commit af88437
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const { interpolateName } = require('loader-utils');
const fs = require('fs');
const glob = require('glob');
const path = require('path');
const { type } = require('os');
const context = path.join(__dirname, 'src');
const outputDir = path.join(__dirname, 'dist');
const baseUrl = 'https://bvarga.dev';
Expand All @@ -45,15 +46,22 @@ module.exports = {
module: {
rules: [
{
test: /\.(png|jpg|jpeg|gif|svg|webp)$/,
test: /\.(png|jpg|jpeg|gif|svg|webp)$/i,
type: 'asset/resource',
},
{
test: /\.ejs/,
test: /\.(woff2?|eot|ttf|otf)$/i,
type: 'asset/resource',
generator: {
filename: '[name].[hash][ext]'
}
},
{
test: /\.ejs/i,
use: ['html-loader', 'template-ejs-loader'],
},
{
test: /\.s?[ac]ss$/,
test: /\.s?[ac]ss$/i,
use: [
MiniCssExtractPlugin.loader,
{
Expand Down

0 comments on commit af88437

Please sign in to comment.