From 79d4ae77fe54c39e9d03e5456c8f211d668b215b Mon Sep 17 00:00:00 2001 From: Stephan Gerbeth Date: Sun, 29 Nov 2020 10:46:51 +0100 Subject: [PATCH 1/4] fix(codesandbox): added support --- nuxt.config.js | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nuxt.config.js b/nuxt.config.js index 4263e193d..401ff3270 100755 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -232,7 +232,7 @@ module.exports = { } ], - // '@/modules/codesandbox', + '@/modules/codesandbox', '@/modules/svg', '@/modules/analyzer', '@nuxtjs/axios', diff --git a/package.json b/package.json index 1e472891f..904484ad7 100644 --- a/package.json +++ b/package.json @@ -86,6 +86,7 @@ "vue-svg-loader": "0.16.0" }, "dependencies": { + "node": "2.19.0", "@js-basics/vector": "1.56.8", "@nuxt/content": "1.11.1", "@nuxtjs/axios": "5.12.2", From 16538b6ea86d4debe67778ee8c9bfa7fe59a8e9f Mon Sep 17 00:00:00 2001 From: Stephan Gerbeth Date: Sun, 29 Nov 2020 10:49:20 +0100 Subject: [PATCH 2/4] fix(codesandbox): corrected node version number --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 904484ad7..91df2ce7d 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "vue-svg-loader": "0.16.0" }, "dependencies": { - "node": "2.19.0", + "node": "12.19.0", "@js-basics/vector": "1.56.8", "@nuxt/content": "1.11.1", "@nuxtjs/axios": "5.12.2", From 1f4019997c14c83e114319558ca0b10c5318a8c7 Mon Sep 17 00:00:00 2001 From: Stephan Gerbeth Date: Sun, 29 Nov 2020 10:52:09 +0100 Subject: [PATCH 3/4] fix(codesandbox): removed font module --- nuxt.config.js | 138 ++++++++++++++++++++++++------------------------- 1 file changed, 69 insertions(+), 69 deletions(-) diff --git a/nuxt.config.js b/nuxt.config.js index 401ff3270..36e47c17e 100755 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -162,75 +162,75 @@ module.exports = { modules: [ '@nuxt/content', - [ - 'nuxt-font-loader-strategy', { - ignoredEffectiveTypes: [ - '2g', 'slow-2g' - ], - fonts: [ - { - fileExtensions: [ - 'woff2', 'woff' - ], - fontFamily: 'Amatic SC', - fontFaces: [ - { - preload: true, - localSrc: [ - 'Amatic SC Regular', - 'AmaticSC-Regular' - ], - src: '@/assets/fonts/amatic-sc-v12-latin-regular', - fontWeight: 400, - fontStyle: 'normal' - }, - // Font-Face - { - localSrc: [ - 'Amatic SC Bold', 'AmaticSC-Bold' - ], - src: '@/assets/fonts/amatic-sc-v12-latin-700', - fontWeight: 700, - fontStyle: 'normal' - } - ] - }, - { - fileExtensions: [ - 'woff2', 'woff' - ], - fontFamily: 'Raleway', - fontFaces: [ - { - preload: true, - localSrc: [ - 'Raleway', 'Raleway-Regular' - ], - src: '@/assets/fonts/raleway-v13-latin-regular', - fontWeight: 400, - fontStyle: 'normal' - }, - { - localSrc: [ - 'Raleway Medium', 'Raleway-Medium' - ], - src: '@/assets/fonts/raleway-v13-latin-500', - fontWeight: 500, - fontStyle: 'normal' - }, - { - localSrc: [ - 'Raleway SemiBold', 'Raleway-SemiBold' - ], - src: '@/assets/fonts/raleway-v13-latin-600', - fontWeight: 600, - fontStyle: 'normal' - } - ] - } - ] - } - ], + // [ + // 'nuxt-font-loader-strategy', { + // ignoredEffectiveTypes: [ + // '2g', 'slow-2g' + // ], + // fonts: [ + // { + // fileExtensions: [ + // 'woff2', 'woff' + // ], + // fontFamily: 'Amatic SC', + // fontFaces: [ + // { + // preload: true, + // localSrc: [ + // 'Amatic SC Regular', + // 'AmaticSC-Regular' + // ], + // src: '@/assets/fonts/amatic-sc-v12-latin-regular', + // fontWeight: 400, + // fontStyle: 'normal' + // }, + // // Font-Face + // { + // localSrc: [ + // 'Amatic SC Bold', 'AmaticSC-Bold' + // ], + // src: '@/assets/fonts/amatic-sc-v12-latin-700', + // fontWeight: 700, + // fontStyle: 'normal' + // } + // ] + // }, + // { + // fileExtensions: [ + // 'woff2', 'woff' + // ], + // fontFamily: 'Raleway', + // fontFaces: [ + // { + // preload: true, + // localSrc: [ + // 'Raleway', 'Raleway-Regular' + // ], + // src: '@/assets/fonts/raleway-v13-latin-regular', + // fontWeight: 400, + // fontStyle: 'normal' + // }, + // { + // localSrc: [ + // 'Raleway Medium', 'Raleway-Medium' + // ], + // src: '@/assets/fonts/raleway-v13-latin-500', + // fontWeight: 500, + // fontStyle: 'normal' + // }, + // { + // localSrc: [ + // 'Raleway SemiBold', 'Raleway-SemiBold' + // ], + // src: '@/assets/fonts/raleway-v13-latin-600', + // fontWeight: 600, + // fontStyle: 'normal' + // } + // ] + // } + // ] + // } + // ], '@/modules/codesandbox', '@/modules/svg', From b5898d15abc6bbeae66a60170c42ee8e83b7935c Mon Sep 17 00:00:00 2001 From: Thorn Walli Date: Sun, 29 Nov 2020 13:59:05 +0100 Subject: [PATCH 4/4] chore(deps): update font-loader and remove node --- nuxt.config.js | 138 +++++++++++++++++++++++----------------------- package-lock.json | 40 +++++++++----- package.json | 3 +- 3 files changed, 95 insertions(+), 86 deletions(-) diff --git a/nuxt.config.js b/nuxt.config.js index 36e47c17e..401ff3270 100755 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -162,75 +162,75 @@ module.exports = { modules: [ '@nuxt/content', - // [ - // 'nuxt-font-loader-strategy', { - // ignoredEffectiveTypes: [ - // '2g', 'slow-2g' - // ], - // fonts: [ - // { - // fileExtensions: [ - // 'woff2', 'woff' - // ], - // fontFamily: 'Amatic SC', - // fontFaces: [ - // { - // preload: true, - // localSrc: [ - // 'Amatic SC Regular', - // 'AmaticSC-Regular' - // ], - // src: '@/assets/fonts/amatic-sc-v12-latin-regular', - // fontWeight: 400, - // fontStyle: 'normal' - // }, - // // Font-Face - // { - // localSrc: [ - // 'Amatic SC Bold', 'AmaticSC-Bold' - // ], - // src: '@/assets/fonts/amatic-sc-v12-latin-700', - // fontWeight: 700, - // fontStyle: 'normal' - // } - // ] - // }, - // { - // fileExtensions: [ - // 'woff2', 'woff' - // ], - // fontFamily: 'Raleway', - // fontFaces: [ - // { - // preload: true, - // localSrc: [ - // 'Raleway', 'Raleway-Regular' - // ], - // src: '@/assets/fonts/raleway-v13-latin-regular', - // fontWeight: 400, - // fontStyle: 'normal' - // }, - // { - // localSrc: [ - // 'Raleway Medium', 'Raleway-Medium' - // ], - // src: '@/assets/fonts/raleway-v13-latin-500', - // fontWeight: 500, - // fontStyle: 'normal' - // }, - // { - // localSrc: [ - // 'Raleway SemiBold', 'Raleway-SemiBold' - // ], - // src: '@/assets/fonts/raleway-v13-latin-600', - // fontWeight: 600, - // fontStyle: 'normal' - // } - // ] - // } - // ] - // } - // ], + [ + 'nuxt-font-loader-strategy', { + ignoredEffectiveTypes: [ + '2g', 'slow-2g' + ], + fonts: [ + { + fileExtensions: [ + 'woff2', 'woff' + ], + fontFamily: 'Amatic SC', + fontFaces: [ + { + preload: true, + localSrc: [ + 'Amatic SC Regular', + 'AmaticSC-Regular' + ], + src: '@/assets/fonts/amatic-sc-v12-latin-regular', + fontWeight: 400, + fontStyle: 'normal' + }, + // Font-Face + { + localSrc: [ + 'Amatic SC Bold', 'AmaticSC-Bold' + ], + src: '@/assets/fonts/amatic-sc-v12-latin-700', + fontWeight: 700, + fontStyle: 'normal' + } + ] + }, + { + fileExtensions: [ + 'woff2', 'woff' + ], + fontFamily: 'Raleway', + fontFaces: [ + { + preload: true, + localSrc: [ + 'Raleway', 'Raleway-Regular' + ], + src: '@/assets/fonts/raleway-v13-latin-regular', + fontWeight: 400, + fontStyle: 'normal' + }, + { + localSrc: [ + 'Raleway Medium', 'Raleway-Medium' + ], + src: '@/assets/fonts/raleway-v13-latin-500', + fontWeight: 500, + fontStyle: 'normal' + }, + { + localSrc: [ + 'Raleway SemiBold', 'Raleway-SemiBold' + ], + src: '@/assets/fonts/raleway-v13-latin-600', + fontWeight: 600, + fontStyle: 'normal' + } + ] + } + ] + } + ], '@/modules/codesandbox', '@/modules/svg', diff --git a/package-lock.json b/package-lock.json index 164d23937..5d36e740e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16469,13 +16469,12 @@ } }, "nuxt-font-loader-strategy": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/nuxt-font-loader-strategy/-/nuxt-font-loader-strategy-1.1.1.tgz", - "integrity": "sha512-S25koKTWnP5UpWlmfZ9zR48N6tqItNPUrcVwe7R7Y6/WAL7q/k9rsTVzPOxNKeCXI0M9fERl1D/SFD7QPtOaew==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/nuxt-font-loader-strategy/-/nuxt-font-loader-strategy-1.1.2.tgz", + "integrity": "sha512-NHF2wZIsi5YANk6z0UGVpxqi0EZwpbkX3rXDtmghE4MQRBlLxUrgMwLO7MuiQk4eLxAqLZM7RELnYgIuWzelVw==", "requires": { "change-case": "4.1.1", - "postcss-nesting": "7.0.1", - "worker-loader": "2.0.0" + "worker-loader": "3.0.5" } }, "nuxt-i18n": { @@ -25917,21 +25916,32 @@ } }, "worker-loader": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/worker-loader/-/worker-loader-2.0.0.tgz", - "integrity": "sha512-tnvNp4K3KQOpfRnD20m8xltE3eWh89Ye+5oj7wXEEHKac1P4oZ6p9oTj8/8ExqoSBnk9nu5Pr4nKfQ1hn2APJw==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/worker-loader/-/worker-loader-3.0.5.tgz", + "integrity": "sha512-cOh4UqTtvT8eHpyuuTK2C66Fg/G5Pb7g11bwtKm7uyD0vj2hCGY1APlSzVD75V9ciYZt44VPbFPiSFTSLxkQ+w==", "requires": { - "loader-utils": "^1.0.0", - "schema-utils": "^0.4.0" + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" }, "dependencies": { + "loader-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", + "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==", + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + }, "schema-utils": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.4.7.tgz", - "integrity": "sha512-v/iwU6wvwGK8HbU9yi3/nhGzP0yGSuhQMzL6ySiec1FSrZZDkhm4noOSWzrNFo/jEc+SJY6jRTwuwbSXJPDUnQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.0.0.tgz", + "integrity": "sha512-6D82/xSzO094ajanoOSbe4YvXWMfn2A//8Y1+MUqFAJul5Bs+yn36xbK9OtNDcRVSBJ9jjeoXftM6CfztsjOAA==", "requires": { - "ajv": "^6.1.0", - "ajv-keywords": "^3.1.0" + "@types/json-schema": "^7.0.6", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" } } } diff --git a/package.json b/package.json index 91df2ce7d..224f12cdb 100644 --- a/package.json +++ b/package.json @@ -86,14 +86,13 @@ "vue-svg-loader": "0.16.0" }, "dependencies": { - "node": "12.19.0", "@js-basics/vector": "1.56.8", "@nuxt/content": "1.11.1", "@nuxtjs/axios": "5.12.2", "@nuxtjs/pwa": "3.3.1", "@nuxtjs/robots": "2.4.2", "nuxt": "2.14.7", - "nuxt-font-loader-strategy": "1.1.1", + "nuxt-font-loader-strategy": "1.1.2", "nuxt-i18n": "6.15.4", "nuxt-polyfill": "1.0.3", "object-fit-images": "github:StephanGerbeth/object-fit-images",