Webpack configuration file

In the last section, we ran the webpack command (on terminal or via npm script) with two arguments:

1. the entry point of our application for webpack to start bundling modules from and


Resolve common file extensions

In the previous section, we imported our my-helper-module in our app.js as below:

import * as helperModule from './my-helper-module.js'

We can add a resolve block in our webpack.config so that webpack can resolve and…


Extract Text Plugin

In the last lesson, we got our styles working all good; getting the css and scss files bundled and then getting the resulting css included within the <style> tags. While this is okay at this point of the beginning of the development phase while we have very little css , but as our css will…


Copy all images/files to a folder using copy-webpack-plugin

In the previous lessons we saw how to use url-loader andfile-loader that allow webpack to bundle/pack images used in our web application. For webpack to know what images our application uses, we have to let webpack know of…

A beginner’s guide to Webpack 2
A beginner’s guide to Webpack 2
A beginner’s guide to Webpack 2
More information
Followers
487
Elsewhere