ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | grep php-fpm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Photoswipe 5.2 was rewritten in ES6 and it needs to be transpiled to ES5 to work with Laravel Mix 4 (which used Webpack 4). | |
If you try a regular import as per the Photoswipe docs, it won't work. You'll need to add this webpack config to your | |
webpack.mix.js and import the modules in your js file as per below. |
When using criticalCSS on Apple Silicon hardware in an arm64 linux virtual machine, puppeteer installs an x86-64 version of chromium which will not launch and will cause and npm run
command to fail.
This problem can be solved by firstly installing chromium-browser which is a native arm64 and x86-64 build:
sudo apt install chromium-browser
OlderNewer