Files
webpack5-tutorial/docs/.vuepress/.temp/pages/base/index.html.vue
2024-10-16 17:02:47 +08:00

19 lines
1.1 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template><h1 id="前言" tabindex="-1"><a class="header-anchor" href="#前言" aria-hidden="true">#</a> 前言</h1>
<h2 id="为什么需要打包工具" tabindex="-1"><a class="header-anchor" href="#为什么需要打包工具" aria-hidden="true">#</a> 为什么需要打包工具</h2>
<p>开发时我们会使用框架ReactVueES6 模块化语法Less/Sass css 预处理器等语法进行开发</p>
<p>这样的代码要想在浏览器运行必须经过编译成浏览器能识别的 JSCss 等语法才能运行</p>
<p>所以我们需要打包工具帮我们做完这些事</p>
<p>除此之外打包工具还能压缩代码做兼容性处理提升代码性能等</p>
<h2 id="有哪些打包工具" tabindex="-1"><a class="header-anchor" href="#有哪些打包工具" aria-hidden="true">#</a> 有哪些打包工具</h2>
<ul>
<li>Grunt</li>
<li>Gulp</li>
<li>Parcel</li>
<li>Webpack</li>
<li>Rollup</li>
<li>Vite</li>
<li>...</li>
</ul>
<p>目前市面上最流量的是 Webpack所以我们主要以 Webpack 来介绍使用打包工具</p>
</template>