Day 61: Webpack Output and Plugins

Continued working through the Webpack documents. Started covering output management and using the HtmlWebpackPlugin to generate template HTML files. It’s slow progress but as long as I build comfort I don’t care. Move at your own pace but always keeping pushing yourself. That’s my approach with all of this. I do wonder sometimes how long it takes others to learn this type of stuff. Although I have those thoughts it is not very helpful to put energy into them. I am who I am and I just have to keep competing with myself.

TLDR;

Okay, so here are the highlights of what I did:

  • JavaScript -> I started working through and coding all the examples in the Output Management page in the Webpack documentation. This page continues on from the examples provided in the Asset Management page.

Latest Config Based on Docs:

File Structure:
---------------
 webpack-demo
  |- package.json
  |- package-lock.json
  |- webpack.config.js
  |- /dist
  |- /src
    |- index.js
+   |- print.js
  |- /node_modules

const path = require('path');

 module.exports = {
  entry: './src/index.js',
  entry: {
    index: './src/index.js',
    print: './src/print.js',
  },
   output: {
     filename: '[name].bundle.js',  // Output for each entry
     path: path.resolve(__dirname, 'dist'),
   },
 };


Goal For Round 7 of the #100DaysofCode Challenge

This is my seventh round of the “#100daysofcode” challenge. I will be continuing my work from round five and round six into round seven. I am currently working through the book “Cracking the Coding Interview” by Gayle Laakmann McDowell. My goal is to become more familiar with algorithms and data structures. This goal was derived from my goal to better understand operating systems and key programs that I use in the terminal regularly e.g. Git. This goal was in turn derived from my desire to better understand the fundamental tools used for coding outside of popular GUIs. This in turn was derived from my desire to be a better back-end developer.

I have no idea if my path is correct but I am walking down this road anyways. Worst case scenario I learn a whole bunch of stuff that will help me out on my own personal projects.