27 lines
502 B
JavaScript
27 lines
502 B
JavaScript
|
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",
|
||
|
}),
|
||
|
],
|
||
|
};
|