Skip to content

Commit 20bf6f2

Browse files
committed
chore: update to html-loader 2
1 parent 1f7ce7e commit 20bf6f2

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

examples/custom-template/template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
</head>
88
<body>
9-
<%= require('html-loader!./partial.html') %>
9+
<%= require('html-loader!./partial.html').default %>
1010
</body>
1111
</html>

examples/javascript-advanced/template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Webpack require:
2-
var partial = require('./partial.html');
2+
var partial = require('./partial.html').default;
33
var universal = require('./universial.js');
44

55
// Export a function / promise / or a string:

examples/javascript/template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Webpack require:
2-
var partial = require('./partial.html');
2+
var partial = require('./partial.html').default;
33
var universal = require('./universial.js');
44

55
// Export a function / promise / or a string:

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
"css-loader": "5.0.1",
3535
"cz-conventional-changelog": "2.1.0",
3636
"dir-compare": "1.7.2",
37-
"file-loader": "6.2.0",
38-
"html-loader": "1.3.2",
37+
"html-loader": "2.0.0",
3938
"jest": "26.5.3",
4039
"mini-css-extract-plugin": "1.0.0",
4140
"pug": "2.0.3",

0 commit comments

Comments
 (0)