Open post webpack

[EN] Using Multiple Configurations in webpack: Exporting an Array of Config Objects

webpack supports enabling multi-compiler mode by exporting an array of configuration objects, allowing multiple entries and bundles to be managed within a single process. This approach unifies build and watch workflows, reduces the complexity of multiple config files, and still supports targeted builds via name (config-name), balancing efficiency, maintainability, and flexibility.

使用 Gulp 快速打包项目

讲解了 Gulp 的安装与使用,包括创建任务、压缩 JS 和 HTML 文件、合并多个文件,以及通过 gulp.watch() 实现文件变化监听与自动构建。使用 gulp-uglify、gulp-concat 等插件,通过输入、管道、输出的方式高效处理文件,提高开发效率。

webpack 4.x 快速搭建

介绍了使用 Webpack 构建项目的完整流程,包括安装依赖、配置脚本与目录结构、集成 HtmlWebpackPlugin 和 CleanWebpackPlugin 插件、设置 Babel 和 Sass 支持,以及启用观察模式和调试模式,提供了详细的代码示例以帮助开发者快速上手。