I am new to the world of webpack.
I have 2 javascript files and I want to designate one as the main entry file. However, for the other file, I only want to include it in specific files.
For example, looking at the file structure below, main.js
is my entry file. There is also another js file named 123.js
. I want 1.html
to utilize both main.js
and 123.js
. On the other hand, the ./2.html
file should only require main.js
.
File Structure:
./main.js
./123.js
./1.html
./2.html
How can I achieve this setup?
Thanks.