How to use alias in <%= require('html-loader!./partial.html').default %>?
Opened this issue · 0 comments
chishuix commented
I configured the following alias
resolve: {
alias: {
// ...
"components": path.resolve(__dirname, "./src/common/components"),
}
},
But when I use it as follows, I get a Can't resolve ...
error .
<%= require('html-loader!components/partial.html').default %>
<%= require('html-loader!~components/partial.html').default %>
<%= require('html-loader!@components/partial.html').default %>
So, how do I use aliases here?
Thx.