webpack1指南 2017-10-02 gitbook释出 webpack1指南: https://www.gitbook.com/book/toobug/webpack-guide虽然webpack1渐渐远去,但有些精巧的小项目是基于webpack1构建的,个人觉得还是有必要熟悉一下。一是为了避免重复早车轮,二是为了深入了解一些经典实现思想(比如《非模块化文件打包》<gh-pages on github支持一个index.html文件,不提供同repo下的资源请求,我目前在摸索快速美观单页repo的高效部署; 又比如《UMD模块打包》,这里面有判断当前宿主js环境规范的经典实现, 编写跨规范js包可以直接拿来用;etc.)。模块化: https://webpack.toobug.net/zh-cn/chapter1/原始时代: https://webpack.toobug.net/zh-cn/chapter1/ancient-times.html命名空间时代: https://webpack.toobug.net/zh-cn/chapter1/name-spacing-age.html模块化时代: https://webpack.toobug.net/zh-cn/chapter1/modular-age.htmlwepack入门: https://webpack.toobug.net/zh-cn/chapter2/入口文件: https://webpack.toobug.net/zh-cn/chapter2/entry-point.html非模块化文件打包:https://webpack.toobug.net/zh-cn/chapter2/non-moduler.htmlAMD模块打包: https://webpack.toobug.net/zh-cn/chapter2/amd.htmlNode模块和NPM: https://webpack.toobug.net/zh-cn/chapter2/node-modules-and-npm.htmlUMD模块打包: https://webpack.toobug.net/zh-cn/chapter2/umd.htmlwebpack进阶: https://webpack.toobug.net/zh-cn/chapter3/CLI与API使用模式: https://webpack.toobug.net/zh-cn/chapter3/cli-api.html基本配置项: https://webpack.toobug.net/zh-cn/chapter3/config.html分片: https://webpack.toobug.net/zh-cn/chapter3/chunks.htmlCommonChuncks插件: https://webpack.toobug.net/zh-cn/chapter3/common-chunks-plugin.html高级配置项: https://webpack.toobug.net/zh-cn/chapter3/advanced-config.htmlLoader使用Loader: https://webpack.toobug.net/zh-cn/chapter4/using-loaders.html常用Loader:bundle-loader: https://webpack.toobug.net/zh-cn/chapter4/bundle-loader.htmlexports-loader: https://webpack.toobug.net/zh-cn/chapter4/exports-loader.htmlimports-loader: https://webpack.toobug.net/zh-cn/chapter4/imports-loader.htmlexpose-loader: https://webpack.toobug.net/zh-cn/chapter4/expose-loader.html杂谈TypeScript和Vue: https://webpack.toobug.net/zh-cn/chapter6/ts-and-vue.html信息提供: https://www.gitbook.com/book/toobug/webpack-guide Last updated: 2017-10-02 16:56:45 让文字梳理技能,用技能创造价值。 赏 Prev linux词典下载地址 Next Todo-2017.10-week2