We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
webpack是一种模块化打包工具,刨去plugin的作用,webpack支持将各种非js格式的文件视为js模块,经过打包后生成在浏览器可执行的bundle。 构建流程: 1、初始化内置环境,生成本次打包通用的Compiler对象 ---- 多次生成Compilation对象 ---- 2、从入口文件开始,依赖搜寻 3、loader转化处理 4、生成处理后的js 5、emit输出文件 ----- plugin可以穿插在webpack运行的多个生命周期,为打包流程赋能 简易原理: webpack的runtime文件自行实现了一套类commonjs的模块化规范,将入口函数作为模块定点,实现了js在浏览器端的自执行与模块装载。
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: