VueLoaderPlugin role

 

Added webpack configuration in the new VueLoaderPlugin,

 

Break point in the plugin

 

 

 

Then Debug :

 

 

You will find the call stack is in this place:

 

 

 

 

It can be concluded in time webpack initialization phase ..webpackjs the beginning of the implementation of this newPlugin on the application to the compiler, and

 

 

Look at the contents of vueLoaderPlugin:

 

 

 

 

It is the first reading compiler.option.module.rule,

Was then added pitchloader, and then put into final vue-loader sequence.

Mainly in the processing rule

 

Guess you like

Origin www.cnblogs.com/eret9616/p/11802889.html