I have a React project where the root dir has an app directory. Inside the app directory, there is a containers and a components directory. How do I change the following so that webpack actually looks in the directory where my entry point is, for modules.
const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin');
const PATHS = {
app: path.join(__dirname, 'app'),
build: path.join(__dirname, 'build'),
};
module.exports = {
// where to start bundling
entry: [
'./app/app.js',
],
// where to output
output: {
// output to same dir
path: PATHS.build,
filename: 'timbundle.js',
},