mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
In very old browsers it used to be that you could only make 2 concurrent requests from the same origin. So base64 encoding of images into CSS was an optimisation that became popular because it reduced the number of separate requests. However base64 encoding images has a few disadvantages: - it increases the size of the image by about 30% - it increases the size of the CSS file, which is a [render blocking resource](https://web.dev/render-blocking-resources/) so makes the page appear to load more slowly for the sake of some images which, on most pages, never get used - GZipping things that are already compressed (for example PNG data) is very CPU intensive, and might be why Cloudfront sometimes gives up Removing the inlining of images reduces the size of the CSS we’re sending to the browser considerably: –| Before | After | Saving ---|---|---|--- Uncompressed | 198kb | 164kb | 17% Compressed | 38kb | 23kb | 39%
61 lines
1.7 KiB
JSON
61 lines
1.7 KiB
JSON
{
|
|
"name": "notifications-admin",
|
|
"version": "0.0.1",
|
|
"description": "Admin front end for GOV.UK Notify",
|
|
"engines": {
|
|
"node": "10.15.3"
|
|
},
|
|
"scripts": {
|
|
"test": "gulp lint && jest --config tests/javascripts/jest.config.js tests/javascripts",
|
|
"test-watch": "jest --watch --config tests/javascripts/jest.config.js tests/javascripts",
|
|
"build": "gulp",
|
|
"watch": "gulp watch"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/alphagov/notifications-admin.git"
|
|
},
|
|
"author": "Government Digital Service",
|
|
"license": "MIT",
|
|
"homepage": "https://github.com/alphagov/notifications-admin#readme",
|
|
"dependencies": {
|
|
"@babel/core": "7.4.0",
|
|
"@babel/preset-env": "7.4.2",
|
|
"del": "5.1.0",
|
|
"diff-dom": "2.5.1",
|
|
"govuk-elements-sass": "3.1.2",
|
|
"govuk-frontend": "2.13.0",
|
|
"govuk_frontend_toolkit": "8.1.0",
|
|
"gulp": "4.0.0",
|
|
"gulp-add-src": "1.0.0",
|
|
"gulp-babel": "8.0.0",
|
|
"gulp-better-rollup": "4.0.1",
|
|
"gulp-clean-css": "4.2.0",
|
|
"gulp-concat": "2.6.1",
|
|
"gulp-include": "2.3.1",
|
|
"gulp-sass": "4.0.2",
|
|
"gulp-uglify": "3.0.2",
|
|
"hogan": "1.0.2",
|
|
"jquery": "3.5.0",
|
|
"leaflet": "1.6.0",
|
|
"query-command-supported": "1.0.0",
|
|
"rollup": "1.23.1",
|
|
"streamqueue": "1.1.2",
|
|
"textarea-caret": "3.1.0",
|
|
"timeago": "1.6.5"
|
|
},
|
|
"devDependencies": {
|
|
"gulp-css-url-adjuster": "0.2.3",
|
|
"gulp-jshint": "2.1.0",
|
|
"gulp-prettyerror": "1.2.1",
|
|
"gulp-sass-lint": "1.4.0",
|
|
"jest": "24.7.1",
|
|
"jest-date-mock": "^1.0.8",
|
|
"jest-each": "^25.3.0",
|
|
"jshint": "2.10.2",
|
|
"jshint-stylish": "2.2.1",
|
|
"rollup-plugin-commonjs": "10.1.0",
|
|
"rollup-plugin-node-resolve": "5.2.0"
|
|
}
|
|
}
|