express-ejs-layouts icon indicating copy to clipboard operation
express-ejs-layouts copied to clipboard

extractStyles not working when script tag is in partial

Open ayman184 opened this issue 3 years ago • 2 comments

When including a partial in a view and the partial has script tags inside it, they don't get extracted to the end of the page. Is this a bug or am I supposed to do it another way? I've enabled the layout extractStyles option in app.set

ayman184 avatar Jul 05 '21 21:07 ayman184

Can you write a unit test showing the failure?

soarez avatar Jul 10 '21 11:07 soarez

@soarez I have the same issue My external js script in inside the header of the layout.ejs and whenever I enter in index/Home page the script works fine but as i click the other page in the website then this error occurs:

"GET http://localhost:3000/books/javascripts/fileUploads.js net::ERR_ABORTED 404 (Not Found)" Kindly help!!

imnomn avatar Nov 18 '21 20:11 imnomn