Home > front end >  Webpack documents after packaging reference question - the require. Js
Webpack documents after packaging reference question - the require. Js

Time:11-29

Assume that webpack after packaging js file and compressed for XXX. Min. Js, size of 20 KB, on the page reference when
General reference for
<script SRC="https://bbs.csdn.net/topics/xxx.min.js" & gt;
I mean normal reference must be synchronized, whether can use the require js to asynchronous loading the js file after packaging?

CodePudding user response:

Take a closer look at requirejs document,

CodePudding user response:

reference 1st floor sp1234 response:
, a closer look at requirejs document


A head of a loss, not to the point! Answer is too broad, I want to get an experience or a direct answer, so I'm little detours, I in drawing up development plan

CodePudding user response:

I mean webpack packaging after things have the person with the require. Js to asynchronous loading the file after packaging? Has anyone done before, that with the require of js interface doesn't matter much, my goal is to maximize the resource loading efficiency

CodePudding user response:

Can, after similar vue plug-ins are packaged with the import/require to reference
  • Related