Webpack Targets
Learn about Webpack targets and how they can be used to build applications suited for different environments such as a Node server environment or browser environment.
Explore our latest thoughts, tutorials, and insights on technology and development
Learn about Webpack targets and how they can be used to build applications suited for different environments such as a Node server environment or browser environment.
Learn require vs import in Node including what a Node module is, run time vs load time, static vs dynamic module loading, .mjs vs .cjs file extensions, and the package.json type key.
Learn what webpack plugins are and how to use them to work with the webpack lifecycle. We will go over the HTML webpack plugin, ProgressPlugin, and create our own custom webpack plugin.
Learn what webpack loaders are and how to use them. We will be using the webpack css-loader and style-loader as a demonstration.
Learn about webpack production vs development, configuring webpack with separate webpack production and development files, the difference between a development and production environment, and why different environments are needed.
Learn what webpack entry points and output are, how to configure each, and what single, multi-main, and object webpack entry points are.
Learn how to use the node-postgres or pg library connection pool. We will learn how to connect a node application to a postgres database, learn what a connection pool is, when to use a connection pool, the benefits of a connection pool, and how to configure a connection pool.
Learn how to use the useCallback React hook, including memoization with useCallback and react.memo, useCallback dependencies, how useCallback increases application performance, and what a function reference is.
Learn how to connect a Node application to a postgres database using the node-postgres or pg npm library, what connection pooling is, the pg npm library, and managing environment variables with dotenv.
Learn how to use postgres and docker including creating a postgres docker container, connecting to a postgres docker container, and running SQL queries inside a postgres docker container.