vue: handle media imports in <template>

This commit is contained in:
Roman committed 2020-06-17 22:03:05 +03:00
1 parent 4e18c992d8
commit da460842a0
1 file changed
+7 -1
+7 -1
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?)$/,