From d718646e77bf58ec5981657d52e5b779159f80fc Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Thu, 20 Jul 2017 16:58:42 +0200 Subject: [PATCH] Using better yml-loader --- simpleExample/package-lock.json | 28 ++++++++++------------------ simpleExample/package.json | 3 +-- simpleExample/webpack.config.js | 2 +- 3 files changed, 12 insertions(+), 21 deletions(-) diff --git a/simpleExample/package-lock.json b/simpleExample/package-lock.json index 6a76c15..4c46d09 100644 --- a/simpleExample/package-lock.json +++ b/simpleExample/package-lock.json @@ -1622,15 +1622,6 @@ "for-in": "1.0.2" } }, - "front-matter": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/front-matter/-/front-matter-2.1.2.tgz", - "integrity": "sha1-91mDufL0E75ljJPf172M5AePXNs=", - "dev": true, - "requires": { - "js-yaml": "3.9.0" - } - }, "get-caller-file": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", @@ -3318,15 +3309,6 @@ "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", "dev": true }, - "yaml-frontmatter-loader": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yaml-frontmatter-loader/-/yaml-frontmatter-loader-0.1.0.tgz", - "integrity": "sha1-bNveMMnpokwGSXdzjfPKrlfdrbo=", - "dev": true, - "requires": { - "front-matter": "2.1.2" - } - }, "yargs": { "version": "6.6.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-6.6.0.tgz", @@ -3383,6 +3365,16 @@ "dev": true } } + }, + "yml-loader": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/yml-loader/-/yml-loader-2.1.0.tgz", + "integrity": "sha512-mo42d5FQWlXxpyTEpYywPu1LzK3F69pPPCOB8WKgJi8s+aqaogQP7XnXTjSobbKzzlZ/wXm7kg9CkP4x4ZnVMw==", + "dev": true, + "requires": { + "js-yaml": "3.9.0", + "loader-utils": "1.1.0" + } } } } diff --git a/simpleExample/package.json b/simpleExample/package.json index 4335e39..3d9a07c 100644 --- a/simpleExample/package.json +++ b/simpleExample/package.json @@ -19,9 +19,8 @@ "babel-plugin-transform-object-rest-spread": "^6.23.0", "babel-preset-latest": "^6.24.1", "html-webpack-plugin": "^2.29.0", - "json-loader": "^0.5.4", "webpack": "^3.3.0", "worker-loader": "^0.8.1", - "yaml-frontmatter-loader": "^0.1.0" + "yml-loader": "^2.1.0" } } diff --git a/simpleExample/webpack.config.js b/simpleExample/webpack.config.js index 8bfc8e4..20ae633 100644 --- a/simpleExample/webpack.config.js +++ b/simpleExample/webpack.config.js @@ -36,7 +36,7 @@ module.exports = { }, { test: /\.yml$/, - use: [ 'json-loader', 'yaml-frontmatter-loader' ] + use: 'yml-loader' }, { test: /\.worker\.js$/,