From f9b0f02476a6217d6ff294ad0df9d48b02d07d7c Mon Sep 17 00:00:00 2001 From: rtak Date: Mon, 8 Feb 2021 16:02:58 +0100 Subject: [PATCH] Updated package versions and updated contributers --- app/templates/_source/js/utilities/setExtLinks.js | 7 ++++++- app/templates/package.json | 6 +++--- package.json | 6 ++++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/app/templates/_source/js/utilities/setExtLinks.js b/app/templates/_source/js/utilities/setExtLinks.js index c4f34df..99db573 100755 --- a/app/templates/_source/js/utilities/setExtLinks.js +++ b/app/templates/_source/js/utilities/setExtLinks.js @@ -14,7 +14,12 @@ const setExtLinks = { initAll: links => { if (links) { [...links].forEach(link => { - link.setAttribute('rel', 'noopener'); + const currentRel = link.getAttribute('rel'); + // Add the current rel to the noopener rel + link.setAttribute( + 'rel', + `noopener${currentRel ? ` ${currentRel}` : ''}` + ); }); } }, diff --git a/app/templates/package.json b/app/templates/package.json index 319718e..f785e09 100755 --- a/app/templates/package.json +++ b/app/templates/package.json @@ -22,7 +22,7 @@ "babel-plugin-syntax-dynamic-import": "^6.18.0", "babel-preset-stage-3": "^6.24.1", "clean-webpack-plugin": "^2.0.2", - "copy-webpack-plugin": "^5.0.3", + "copy-webpack-plugin": "^6.2.1", "css-loader": "^2.1.1", "cssnano": "^4.1.10", "eslint": "^5.16.0", @@ -42,8 +42,8 @@ "prettier": "^1.17.0", "sass-loader": "^7.1.0", "style-loader": "^0.23.1", - "stylelint": "^10.0.1", - "stylelint-config-supple": "^2.1.0", + "stylelint": "^13.8.0", + "stylelint-config-supple": "^3.0.3", "stylelint-scss": "^3.6.1", "svg-sprite-loader": "^4.1.6", "svg-spritemap-webpack-plugin": "^3.3.0", diff --git a/package.json b/package.json index 0e3bdd1..b5e5dab 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@e-sites/generator-esites-fe", - "version": "3.1.6", + "version": "3.1.7", "description": "Yeoman generator for E-sites frontend", "main": "index.js", "scripts": { @@ -23,7 +23,9 @@ ], "author": "Bram Smulders ", "contributors": [ - "Remco Tak " + "Remco Tak ", + "Tom Schalken ", + "Nadia van Leur " ], "license": "MIT", "bugs": {