[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extractStyles not working when script tag is in partial #51

Open
ayman184 opened this issue Jul 5, 2021 · 2 comments
Open

extractStyles not working when script tag is in partial #51

ayman184 opened this issue Jul 5, 2021 · 2 comments

Comments

@ayman184
Copy link
ayman184 commented Jul 5, 2021

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

@soarez
Copy link
Owner
soarez commented Jul 10, 2021

Can you write a unit test showing the failure?

@imnomn
Copy link
imnomn commented Nov 18, 2021

@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!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants