I expected my CSS from index.module.css to be injected in my index.html file upon build but when I build my code and open localhost:8000, I do see my index.html being served but also this error in the console of browser
Uncaught ReferenceError: __content_placeholder__ is not defined
I am using basic esbuild setup with a single
index.js
and.index.module.css
fileMy esbuild config looks like so:
And then I am importing the output
index.js
file in apublic/index.html
file like soHere the script src
/build/index.js
is what esbuild generates from mysrc/index.js
file which looks like thisI expected my CSS from
index.module.css
to be injected in myindex.html
file upon build but when I build my code and openlocalhost:8000
, I do see my index.html being served but also this error in the console of browser