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
extractScripts and extractStyles don't work as expected #29
Comments
No, it's not expected. But I also can't reproduce this issue. The script block is placed at the end of the rendered HTML and the style block is yanked up inside the
|
It is definitely not doing it for me. Can you give me directions at where I should be looking at?
|
I'm testing on Windows with node.js version 6.10.1 |
I checked and the regular expression for the script extraction doesn't work. |
This is really strange, I'm on macOS, tested with the same version of Node, but still can't replicate. Will try with a VM as soon as possible. |
How do you run the test? `make test` won't do it for me as there is no makefile.
…________________________________
From: Igor Soarez <notifications@github.com>
Sent: Thursday, March 30, 2017 4:54:53 PM
To: Soarez/express-ejs-layouts
Cc: Manu; Author
Subject: Re: [Soarez/express-ejs-layouts] extractScripts and extractStyles don't work as expected (#29)
This is really strange, I'm on macOS, tested with the same version of Node, but still can't replicate. Will try with a VM as soon as possible.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#29 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AMlVpJ5eLgh6q9dWYsv44XTfANIvBZVAks5rrEDNgaJpZM4Muogv>.
|
Sorry, the instructions were outdated. Run the tests with |
#30 might make it work. The test suite fails on windows because of the different EOL used by windows. Until the test suite is fixed, I recommend configuring git and your editor to use linux style line endings i.e. |
Will do. Thanks! |
I cloned the repo, did npm install at the root and then launched the server as
node example/index.js
. When I inspect the source of the rendered page in the browser, both style and scripts are still at their original position in the view instead of being respectively at the top and bottom.Is this expected?
The text was updated successfully, but these errors were encountered: