mirror of
https://github.com/docker/awesome-compose.git
synced 2026-04-02 19:35:46 +02:00
add react-nginx (#121)
add react-nginx Signed-off-by: phamthainb <phamthai4643@gmail.com>
This commit is contained in:
committed by
GitHub
parent
30d01c2cad
commit
263ba37b97
13
react-nginx/src/reportWebVitals.js
vendored
Executable file
13
react-nginx/src/reportWebVitals.js
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
const reportWebVitals = onPerfEntry => {
|
||||
if (onPerfEntry && onPerfEntry instanceof Function) {
|
||||
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
|
||||
getCLS(onPerfEntry);
|
||||
getFID(onPerfEntry);
|
||||
getFCP(onPerfEntry);
|
||||
getLCP(onPerfEntry);
|
||||
getTTFB(onPerfEntry);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
export default reportWebVitals;
|
||||
Reference in New Issue
Block a user