...

/

Understanding webpack Configuration

Understanding webpack Configuration

Learn how to use webpack in this lesson.

Evaluating our webpack is difficult because its behavior depends on its configuration file, and one of the things Rails Webpacker does is generate that configuration file from different inputs. As a result, we can’t see the real webpack configuration in a file.

There’s a partial workaround that will allow us to print out the configuration file, or at least most of it, and it’ll be used to guide our way through the way webpack works, and then we will learn how Webpacker simplifies webpack.

The workaround to let us see our webpack configuration is to go to the file config/webpack/development.js and add the following lines at the end of the script:

Object.definePropert
...