与webpack一起提供apple-app-site-association

时间:2017-10-07 21:14:05

标签: reactjs webpack ios-universal-links webpack-file-loader

我是webpack的新手,我似乎找不到在webpack下使用Apple Universal Links文件的方法。

您能否建议如何让/ apple-app-site-association工作?

1 个答案:

答案 0 :(得分:1)

如果您想通过webpack提供apple-app-site-association,则可以添加加载程序 并在main.js中为此文件添加导入

{
  test: /apple-app-site-association/,
  exclude: /node_modules/,
  loader: [
  {
    loader:'file-loader', 
    options: {
      name: '/[name]',
    }
  }]
}