| 12345678910111213141516171819202122 |
- const HtmlWebPackPlugin = require("html-webpack-plugin");
- const htmlPlugin = new HtmlWebPackPlugin({
- template: "./src/index.html",
- filename: "./index.html"
- });
- module.exports = {
- mode: 'development',
- module: {
- rules: [{
- test: /\.js$/,
- exclude: /node_modules/,
- use: {
- loader: "babel-loader"
- }
- },
- {
- test: /\.css$/,
- use: ["style-loader", "css-loader"]
- }
- ]},
- plugins: [htmlPlugin]
- };
|