1
0
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:
Roman 2020-06-17 21:57:58 +03:00
parent 4e18c992d8
commit da460842a0

View File

@ -77,7 +77,13 @@ export function webpackConfigReact(): webpack.Configuration {
},
{
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?)$/,