Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不会根据 publicPath 生成 inject #1

Open
hgt803 opened this issue Jul 2, 2019 · 2 comments
Open

不会根据 publicPath 生成 inject #1

hgt803 opened this issue Jul 2, 2019 · 2 comments

Comments

@hgt803
Copy link

hgt803 commented Jul 2, 2019

  • vue.config.js
module.exports = {
  ...
  publicPath: '/easyfilm'
  ...
}
  • index.html(error)
 <script src=dll/js/vendor.dll.81c7d8fc.js> </script>
 <script src=/easyfilm/js/chunk-vendors.bd33e027.js> </script>
  <script src=/easyfilm/js/app.81feef11.js> </script>
  • index.html(wish)
 <script src=/easyfilm/dll/js/vendor.dll.81c7d8fc.js> </script>
 <script src=/easyfilm/js/chunk-vendors.bd33e027.js> </script>
  <script src=/easyfilm/js/app.81feef11.js> </script>
@hgt803
Copy link
Author

hgt803 commented Jul 2, 2019

  • dll.resolveAddAssetHtmlArgs(config)
    • getAssetHtmlPluginDefaultArg(..., config)
      • publicPath = ${config.output.store.get('publicPath')}${baseDllPath}/${typeOfAsset}\

@cklwblove
Copy link
Owner

  • vue.config.js
module.exports = {
  ...
  publicPath: '/easyfilm'
  ...
}
  • index.html(error)
 <script src=dll/js/vendor.dll.81c7d8fc.js> </script>
 <script src=/easyfilm/js/chunk-vendors.bd33e027.js> </script>
  <script src=/easyfilm/js/app.81feef11.js> </script>
  • index.html(wish)
 <script src=/easyfilm/dll/js/vendor.dll.81c7d8fc.js> </script>
 <script src=/easyfilm/js/chunk-vendors.bd33e027.js> </script>
  <script src=/easyfilm/js/app.81feef11.js> </script>

提个 pr ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants