Allow installation of the NodeJS MagePack app
At the moment we cannot install the Magesuite's MagePack Javascript bundling module (https://github.com/magesuite/magepack) on Hypernode because root access is required to install the NodeJS app.
With Google's upcoming Core Web Vital update in May it would be great if we can apply Magepack as part of our toolset to improve the Pagespeed scores.
-
Hi Dennis!
You can install magepack on a Hypernode yourself if you do not use the -g (global) flag.
app@wifbk8-test-magweb-aws:~$ npm install magepack
> puppeteer@2.1.1 install /data/web/node_modules/puppeteer
> node install.jsDownloading Chromium r722234 - 121.1 Mb [====================] 100% 0.0s
Chromium downloaded to /data/web/node_modules/puppeteer/.local-chromium/linux-722234
npm WARN saveError ENOENT: no such file or directory, open '/data/web/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/data/web/package.json'
npm WARN web No description
npm WARN web No repository field.
npm WARN web No README data
npm WARN web No license field.+ magepack@2.4.1
added 57 packages from 75 contributors and audited 57 packages in 8.018s
1 package is looking for funding
run `npm fund` for detailsfound 0 vulnerabilities
app@wifbk8-test-magweb-aws:~$ node_modules/.bin/magepack --help
Usage: magepack [generate|bundle] <options...>Options:
-v, --version Output the current version.
-h, --help Show this command summary.Commands:
generate [options] Generate optimization configuration based on given page URLs.
bundle [options] Bundle JavaScript files using given configuration file.