node src/startBrowser.js
node src/connectBrowser.js
./node_modules/.bin/serverless deploy && ./node_modules/.bin/serverless invoke -f takeScreenshot -l
./node_modules/.bin/serverless deploy
./node_modules/.bin/serverless remove
./node_modules/.bin/serverless invoke -f takeScreenshot -l
./node_modules/.bin/serverless invoke local -f takeScreenshot -l
./node_modules/.bin/serverless package
which packages are taking up the most space?
ANALYZE_BUNDLE=true ./node_modules/.bin/serverless package
why is this package included?
npm ls --prod
beast-rollup
./node_modules/.bin/serverless deploy && ./node_modules/.bin/serverless invoke -f takeScreenshot -l
yarn build -w
beast-serverless
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true NPM_CONFIG_SERVERLESS_CHROME_SKIP_DOWNLOAD=true yarn
./node_modules/.bin/serverless package
du -h .serverless/beast.zip
2.6M .serverless/beast.zip
beast-webpack
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true NPM_CONFIG_SERVERLESS_CHROME_SKIP_DOWNLOAD=true ./node_modules/.bin/serverless package
without uglify:
$ du -h .serverless/beast.zip
112K .serverless/beast.zip
with uglify:
$ du -h .serverless/beast.zip
64K .serverless/beast.zip
webpack-node-externals? Only if we're including node_modules.
cannot use tar because yallist has a weird require that screws up rollup.