What is the current behavior?
I am developing a vue plugin that is built using
@vue/cli 3.0.0-rc.10. Additional features can be loaded via option options when installing the plugin (asynchronously loaded via
If you import it using
<script>, it will work fine.
But there was a problem when importing via webpack:
Here webpack gets extra functionality by asynchronously loading the script element, but this file is not copied to
publicPath, causing the file to not exist and cannot be loaded.
What is the expected behavior?
I am not sure if the current behavior is expected, but I think it should be copied to
publicPath and the module loaded correctly.
Other relevant information:
webpack version: v4.16.4
Node.js version: v9.11.1
Operating System: macOS High Sierra Version 10.13.6
Additional tools: –