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

Update npm-scripts to support Windows #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lucianweber
Copy link

This pull-request removes all Unix-specific commands from the NPM-scripts and replace them with cross-platform commands, thereby allowing this project to built on Windows.

I have tested these changes on Windows and they produce a package.zip.
Since I currently do not have access to a Unix-system I can neither verify if the changes also altered the behaviour nor if this is still working on Unix, so this should be tested before merging.

Fixes #6 and fixes #14.

@Anasbzr
Copy link

Anasbzr commented Jul 4, 2018

I have deployed this package over to lambda and I get the following error!

(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Failed to launch chrome! spawn /tmp/headless_shell ENOENT

I had chrome working when deploying from a unix based system.

Based on unix, the Lambda's size is 42mb, Windows is 12mb

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