Skip to content

Commit 48bb6cf

Browse files
committed
make meta support interpolation of html-loader
1 parent d3530f4 commit 48bb6cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/webpack.config.dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ module.exports = {
158158
// resources linked with <link href="./relative/path"> HTML tags.
159159
{
160160
test: /\.html$/,
161-
loader: 'html',
161+
loader: 'html?interpolate=require',
162162
query: {
163163
attrs: ['link:href'],
164164
}

config/webpack.config.prod.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ module.exports = {
168168
// resources linked with <link href="./relative/path"> HTML tags.
169169
{
170170
test: /\.html$/,
171-
loader: 'html',
171+
loader: 'html?interpolate=require',
172172
query: {
173173
attrs: ['link:href'],
174174
}

0 commit comments

Comments
 (0)