YuraDev / vue-chrome-extension-template

vue chrome extension template
MIT License
651 stars 104 forks source link

How to split js file into small files? #27

Closed shiny closed 5 years ago

shiny commented 5 years ago

When upload to Firefox extension, it says

This file is not binary and is too large to parse. Files larger than 4MB will not be parsed. If your JavaScript file has a large list, consider removing the list and loading it as a separate JSON file instead.

Firefox only support js files that size less than 4MB.

shiny commented 5 years ago

Webpack dynamic imports: import() solved my problem. https://webpack.js.org/guides/code-splitting#dynamic-imports