As per the webpack documentation, node_modules is expected to be in the parent folder of webpack.config.js. Without this change, when I tried to run the project's example I got the following error:
ERROR in ./~/html-webpack-plugin/lib/loader.js!../index.ejs
Module not found: Error: Cannot resolve module 'babel-loader' in /Users/rbose85/Code/opensrc/html-webpack-template
@ ./~/html-webpack-plugin/lib/loader.js!../index.ejs 1:8-92
As per the webpack documentation,
node_modules
is expected to be in the parent folder ofwebpack.config.js
. Without this change, when I tried to run the project's example I got the following error: