Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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'),
   },
 };
Source by medium.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
7+6 =