Answers for "webpack5 config"

0

webpack install webpack config

npx webpack-cli init
Posted by: Guest on January-11-2022
0

webpack/config/html

const path = require('path');
+const HtmlWebpackPlugin = require('html-webpack-plugin');

 module.exports = {
   entry: {
     index: './src/index.js',
     print: './src/print.js',
   },
+  plugins: [
+    new HtmlWebpackPlugin({
+      title: 'Output Management',
+    }),
+  ],
   output: {
     filename: '[name].bundle.js',
     path: path.resolve(__dirname, 'dist'),
   },
 };
Posted by: Guest on January-12-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language