mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
vue: handle media imports in <template>
This commit is contained in:
parent
4e18c992d8
commit
da460842a0
@ -77,7 +77,13 @@ export function webpackConfigReact(): webpack.Configuration {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(jpg|png|svg|map|ico)$/,
|
test: /\.(jpg|png|svg|map|ico)$/,
|
||||||
use: "file-loader?name=images/[name]-[hash:6].[ext]"
|
use: {
|
||||||
|
loader: "file-loader",
|
||||||
|
options: {
|
||||||
|
name: "images/[name]-[hash:6].[ext]",
|
||||||
|
esModule: false, // handle media imports in <template>, e.g <img src="../assets/logo.svg"> (vue/react?)
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(ttf|eot|woff2?)$/,
|
test: /\.(ttf|eot|woff2?)$/,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user