如何修改vue-cli的vue-loader以更新transformAssetsUrl

时间:2018-10-03 16:27:00

标签: vue.js vue-cli

我正在使用vue-cli 3.0.1。

我希望更新transformAssetsUrl选项,但不确定如何执行此操作。(https://vue-loader.vuejs.org/options.html#transformasseturls

我不确定我应该在vue.config.js的chainWebpack部分中放入什么

1 个答案:

答案 0 :(得分:0)

如上面的评论所述,这里对此进行了说明-https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader

对于我的特殊情况,我想更新transforassetsurls以处理v-img标签。下面是我的操作方法。

df2 = df[pd.notna(df["'Value'_Dupe"])][["'Value'_Dupe","ID_1","ID_2"]]
df2.columns = ["'Value'","ID_1","ID_2"]

df3 = df[pd.notna(df["ID_1_Dupe"])][["'Value'","ID_1_Dupe","ID_2"]]
df3.columns = ["'Value'","ID_1","ID_2"]

df4 = df[pd.notna(df["ID_2_Dupe"])][["'Value'","ID_1","ID_2_Dupe"]]
df4.columns = ["'Value'","ID_1","ID_2"]

df5 = df[["'Value'","ID_1","ID_2"]]

df_result = pd.concat([df5,df2,df3,df4])
df_result



    'Value'     ID_1        ID_2
0   11122222    ABC42123    33333
1   21219299    YOF21233    88821
2   00022011    ERE00091    23124
3   75643311    ROB21288    99421
4   12412421    POW94277    12231
5   54221721    IRS21231    13123
3   21233332    ROB21288    99421
5   54221721    YOU28137    13123
4   12412421    POW94277    33221