odin-js-form-validation/webpack.common.js

27 lines
502 B
JavaScript
Raw Normal View History

2024-02-20 20:12:56 +00:00
const HtmlWebpackPlugin = require("html-webpack-plugin");
module.exports = {
entry: "./src/main.js",
module: {
rules: [
{
test: /\.css$/i,
use: ["style-loader", "css-loader"],
},
{
test: /\.(png|gif|jpe?g|webp|svg)$/i,
type: "asset",
},
{
test: /\.(woff|woff2|otf|ttf|eot)$/i,
type: "asset/resource",
},
],
},
plugins: [
new HtmlWebpackPlugin({
template: "./src/index.html",
}),
],
};