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