# webpack-front-sdk **Repository Path**: zhanli_jian/webpack-front-sdk ## Basic Information - **Project Name**: webpack-front-sdk - **Description**: Webpack 实践: 前端 SDK 开发(使用 webpack 打包 library) - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-06-15 - **Last Updated**: 2023-08-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: Library ## README # 参考连接 | Title | link | | ---------------------------------------------------------------------------- | ----------------------------------------------------------------------- | | 创建 library - webpack | https://webpack.docschina.org/guides/author-libraries/ | | 如何使用 webpack 打包一个库 library | https://segmentfault.com/a/1190000021318631 | | Yarn local packages dependencies | https://stackoverflow.com/questions/48686053/yarn-local-packages-dependencies | | Error: Cannot find module ‘webpack’ | https://stackoverflow.com/questions/29492240/error-cannot-find-module-webpack | | TypeScript – @babel/preset-typescript & ts-loader | https://evanlouie.github.io/posts/typescript-babel-preset-typescript-ts-loader | | Webpack 转译 Typescript 现有方案 | https://juejin.cn/post/6844904052094926855 | | webpack 打包 ts 的两种方案对比 | https://juejin.cn/post/6844904160375078925#heading-8 | | Typescript + Webpack library generates “ReferenceError: self is not defined” | https://stackoverflow.com/questions/64639839/typescript-webpack-library-generates-referenceerror-self-is-not-defined | | How to generate d.ts and d.ts.map files using webpack? | https://stackoverflow.com/questions/55318663/how-to-generate-d-ts-and-d-ts-map-files-using-webpack | | javascript - 如何使用 webpack 生成 d.ts 和 d.ts.map 文件? | https://www.coder.work/article/936583 | | 【ts】TypeScript 声明文件(.d.ts) | https://www.jianshu.com/p/7153d88fa232 | | Typescript 无法解析 npm 包的定义文件 | https://www.codenong.com/47984306/ | | HtmlWebpackPlugin - webpack | https://webpack.js.org/plugins/html-webpack-plugin/ | | ReferenceError: HtmlWebpackPlugin is not defined #1453 | https://github.com/jantimon/html-webpack-plugin/issues/1453 | | JS 模块规范:AMD、UMD、CMD、commonJS、ES6 module | https://segmentfault.com/a/1190000012419990 | | 配置 webpack 的 externals 不打包第三方包 | https://www.cnblogs.com/h2zZhou/p/12986126.html | # [demo 参考](https://blog.csdn.net/weixin_44691608/article/details/120346688) # [如何选择 TypeScript 编译工具](https://juejin.cn/post/6954304242093932557) * 如果没有使用 Babel,首选 TypeScript 自带编译器(配合 ts-loader 使用) * 如果项目中有 Babel,安装 @babel/preset-typescript,配合 tsc 做类型检查。 * 两种编译器不要混用。