对我来说,Webpack简直是妖术,我正试图破解jhipster的Webpack配置以与babel-loader配合使用,以便我可以使用ant.d。我已将Public Class windows_metadata_helper
Public Shared shell As New Shell32.Shell
Public Shared indices_of_interest As New Dictionary(Of Integer, String)
Public Shared path_index As Integer
Shared Sub New()
'snipped long piece code for figuring out the indices of the attributes that I need, they are stored in indices_of_interest, for example 0:Name
End Sub
Public Shared Function get_interesting_data(path) As Dictionary(Of String, String)
Dim fi As New IO.FileInfo(path)
Dim f_dir = shell.NameSpace(fi.DirectoryName)
Dim data As New Dictionary(Of String, String)
For Each item In f_dir.Items()
If f_dir.GetDetailsOf(item, path_index) = fi.FullName Then
For Each kvp In indices_of_interest
Dim val = f_dir.GetDetailsOf(item, kvp.Key)
If Not String.IsNullOrEmpty(val) Then data.Add(kvp.Value, val)
Next
Exit For
End If
Next
Return data
End Function
End Class
添加到我的部门并将以下内容附加到package.json:
"babel-plugin-import": "^1.8.0"
再一次,这对我来说都是黑魔法,我不确定要使babel-loader与我的网页配置一起使用时应该遵循哪些指示。让我知道是否需要查看其他配置文件,我将其发布。