From 20bf6f2ae11c7b31335e0eb35ce0feaeb0039f6f Mon Sep 17 00:00:00 2001 From: Jan Nicklas Date: Fri, 19 Feb 2021 15:07:32 +0100 Subject: [PATCH] chore: update to html-loader 2 --- examples/custom-template/template.html | 2 +- examples/javascript-advanced/template.js | 2 +- examples/javascript/template.js | 2 +- package.json | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/custom-template/template.html b/examples/custom-template/template.html index 75e6ef43..1ffee6cd 100644 --- a/examples/custom-template/template.html +++ b/examples/custom-template/template.html @@ -6,6 +6,6 @@ - <%= require('html-loader!./partial.html') %> + <%= require('html-loader!./partial.html').default %> diff --git a/examples/javascript-advanced/template.js b/examples/javascript-advanced/template.js index bd0f7058..2b006a25 100644 --- a/examples/javascript-advanced/template.js +++ b/examples/javascript-advanced/template.js @@ -1,5 +1,5 @@ // Webpack require: -var partial = require('./partial.html'); +var partial = require('./partial.html').default; var universal = require('./universial.js'); // Export a function / promise / or a string: diff --git a/examples/javascript/template.js b/examples/javascript/template.js index cbc74163..33ca1b57 100644 --- a/examples/javascript/template.js +++ b/examples/javascript/template.js @@ -1,5 +1,5 @@ // Webpack require: -var partial = require('./partial.html'); +var partial = require('./partial.html').default; var universal = require('./universial.js'); // Export a function / promise / or a string: diff --git a/package.json b/package.json index bfb9cb6a..2ce184fb 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,7 @@ "css-loader": "5.0.1", "cz-conventional-changelog": "2.1.0", "dir-compare": "1.7.2", - "file-loader": "6.2.0", - "html-loader": "1.3.2", + "html-loader": "2.0.0", "jest": "26.5.3", "mini-css-extract-plugin": "1.0.0", "pug": "2.0.3",