generated from tod/odin-webpack-template
27 lines
520 B
JavaScript
27 lines
520 B
JavaScript
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
|
|
|
module.exports = {
|
|
entry: "./src/main.js",
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.css$/i,
|
|
use: ["style-loader", "css-loader", "postcss-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",
|
|
}),
|
|
],
|
|
};
|