From 65149c88e1aadf94ffcc2f3a30cd49dcba60d58b Mon Sep 17 00:00:00 2001 From: DuYi Date: Tue, 27 Aug 2024 10:14:14 +0800 Subject: [PATCH] auto commit --- 01. CMJ和ESM/1.js | 1 + 01. CMJ和ESM/esm/counter.js | 1 + 01. CMJ和ESM/esm/index.html | 1 + 01. CMJ和ESM/esm/index.js | 1 + 01. CMJ和ESM/index.js | 1 + 01. CMJ和ESM/课件.md | 1 + 02. npx/proj1/dist/main.js | 2 +- 02. npx/proj1/src/index.js | 1 + 02. npx/proj2/dist/main.js | 2 +- 02. npx/proj2/src/index.js | 1 + 02. npx/课件.md | 1 + 03. ESLint/eslint-airbnb/.eslintrc.js | 1 + 03. ESLint/eslint-airbnb/src/1.js | 1 + 03. ESLint/eslint-basic/.eslintrc.js | 1 + 03. ESLint/eslint-basic/src/index.js | 1 + 03. ESLint/vue-app/.eslintrc.js | 1 + 03. ESLint/vue-app/README.md | 1 + 03. ESLint/vue-app/babel.config.js | 1 + 03. ESLint/vue-app/public/index.html | 1 + 03. ESLint/vue-app/src/App.vue | 1 + 03. ESLint/vue-app/src/components/HelloWorld.vue | 1 + 03. ESLint/vue-app/src/main.js | 1 + 03. ESLint/课件.md | 2 +- 04. 关于webpack的诸多问题/课件.md | 1 + 05. webpack scope hoisting/demo/dist/main.js | 1 + 05. webpack scope hoisting/demo/src/index.js | 1 + 05. webpack scope hoisting/demo/src/module.js | 1 + 05. webpack scope hoisting/demo/webpack.config.js | 1 + 05. webpack scope hoisting/课件.md | 2 +- 06. webpack5更新了什么/top-level-await/dist/main.js | 1 + 06. webpack5更新了什么/top-level-await/src/index.js | 1 + 06. webpack5更新了什么/top-level-await/webpack.config.js | 1 + 06. webpack5更新了什么/打包体积优化/dist/index1.js | 2 +- 06. webpack5更新了什么/打包体积优化/dist/index2.js | 1 + 06. webpack5更新了什么/打包体积优化/src/index1.js | 1 + 06. webpack5更新了什么/打包体积优化/src/index2.js | 1 + 06. webpack5更新了什么/打包体积优化/src/modules/a.js | 1 + 06. webpack5更新了什么/打包体积优化/src/modules/b.js | 1 + 06. webpack5更新了什么/打包体积优化/webpack.config.js | 1 + 06. webpack5更新了什么/打包缓存/dist/main.js | 2 +- 06. webpack5更新了什么/打包缓存/src/index.js | 1 + 06. webpack5更新了什么/打包缓存/webpack.config.js | 1 + 06. webpack5更新了什么/清除输出目录/dist/main.js | 1 + 06. webpack5更新了什么/清除输出目录/src/index.js | 1 + 06. webpack5更新了什么/清除输出目录/webpack.config.js | 1 + 06. webpack5更新了什么/课件.md | 2 +- 06. webpack5更新了什么/资源模块/dist/index.html | 2 +- 06. webpack5更新了什么/资源模块/dist/main.js | 2 +- 06. webpack5更新了什么/资源模块/src/index.js | 1 + 06. webpack5更新了什么/资源模块/webpack.config.js | 1 + 07. npm模块安装机制/课件.md | 2 +- 08. 模块联邦/demo/active/src/bootstrap.js | 1 + 08. 模块联邦/demo/active/src/index.js | 1 + 08. 模块联邦/demo/active/src/news.js | 1 + 08. 模块联邦/demo/active/webpack.config.js | 1 + 08. 模块联邦/demo/home/dist/home-entry.js | 2 +- 08. 模块联邦/demo/home/dist/index.html | 2 +- 08. 模块联邦/demo/home/dist/main.js | 2 +- 08. 模块联邦/demo/home/dist/src_bootstrap_js.js | 2 +- 08. 模块联邦/demo/home/dist/src_now_js.js | 2 +- 08. 模块联邦/demo/home/src/bootstrap.js | 1 + 08. 模块联邦/demo/home/src/index.js | 1 + 08. 模块联邦/demo/home/src/now.js | 1 + 08. 模块联邦/demo/home/webpack.config.js | 1 + 08. 模块联邦/课件.md | 1 + 工程化面试题汇总.md | 1 + 工程化面试题汇总(无答案版).md | 1 + 67 files changed, 67 insertions(+), 15 deletions(-) diff --git a/01. CMJ和ESM/1.js b/01. CMJ和ESM/1.js index 1064658..42d33a2 100644 --- a/01. CMJ和ESM/1.js +++ b/01. CMJ和ESM/1.js @@ -4,3 +4,4 @@ this.c = 'c'; module.exports = { d: 'd', }; + diff --git a/01. CMJ和ESM/esm/counter.js b/01. CMJ和ESM/esm/counter.js index 07a61e2..e4fd726 100644 --- a/01. CMJ和ESM/esm/counter.js +++ b/01. CMJ和ESM/esm/counter.js @@ -3,3 +3,4 @@ export { count }; export function increase() { count++; } + diff --git a/01. CMJ和ESM/esm/index.html b/01. CMJ和ESM/esm/index.html index d931f03..799a430 100644 --- a/01. CMJ和ESM/esm/index.html +++ b/01. CMJ和ESM/esm/index.html @@ -10,3 +10,4 @@ + diff --git a/01. CMJ和ESM/esm/index.js b/01. CMJ和ESM/esm/index.js index c6bc174..ee54a19 100644 --- a/01. CMJ和ESM/esm/index.js +++ b/01. CMJ和ESM/esm/index.js @@ -5,3 +5,4 @@ increase(); console.log(count); console.log(counter.count); console.log(c); + diff --git a/01. CMJ和ESM/index.js b/01. CMJ和ESM/index.js index 1f34fc8..bfedc27 100644 --- a/01. CMJ和ESM/index.js +++ b/01. CMJ和ESM/index.js @@ -1,2 +1,3 @@ const m = require('./1'); console.log(m); + diff --git a/01. CMJ和ESM/课件.md b/01. CMJ和ESM/课件.md index eafddd2..0cba57c 100644 --- a/01. CMJ和ESM/课件.md +++ b/01. CMJ和ESM/课件.md @@ -134,3 +134,4 @@ console.log(a); // 2 + diff --git a/02. npx/proj1/dist/main.js b/02. npx/proj1/dist/main.js index e0ac298..a09f12d 100644 --- a/02. npx/proj1/dist/main.js +++ b/02. npx/proj1/dist/main.js @@ -1 +1 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t){console.log(123)}]); \ No newline at end of file +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t){console.log(123)}]); diff --git a/02. npx/proj1/src/index.js b/02. npx/proj1/src/index.js index 97eb0c9..810dfd9 100644 --- a/02. npx/proj1/src/index.js +++ b/02. npx/proj1/src/index.js @@ -1 +1,2 @@ console.log(123); + diff --git a/02. npx/proj2/dist/main.js b/02. npx/proj2/dist/main.js index 230bd35..07c1c31 100644 --- a/02. npx/proj2/dist/main.js +++ b/02. npx/proj2/dist/main.js @@ -1 +1 @@ -console.log(123); \ No newline at end of file +console.log(123); diff --git a/02. npx/proj2/src/index.js b/02. npx/proj2/src/index.js index 97eb0c9..810dfd9 100644 --- a/02. npx/proj2/src/index.js +++ b/02. npx/proj2/src/index.js @@ -1 +1,2 @@ console.log(123); + diff --git a/02. npx/课件.md b/02. npx/课件.md index ece4c14..5108d56 100644 --- a/02. npx/课件.md +++ b/02. npx/课件.md @@ -44,3 +44,4 @@ npm init @命名空间 # 等效于 npx @命名空间/create npm init @命名空间/包名 # 等效于 npx @命名空间/create-包名 ``` + diff --git a/03. ESLint/eslint-airbnb/.eslintrc.js b/03. ESLint/eslint-airbnb/.eslintrc.js index e5fd0f6..a9c6e9f 100644 --- a/03. ESLint/eslint-airbnb/.eslintrc.js +++ b/03. ESLint/eslint-airbnb/.eslintrc.js @@ -1,3 +1,4 @@ module.exports = { extends: 'airbnb', }; + diff --git a/03. ESLint/eslint-airbnb/src/1.js b/03. ESLint/eslint-airbnb/src/1.js index 68dd873..e6f543d 100644 --- a/03. ESLint/eslint-airbnb/src/1.js +++ b/03. ESLint/eslint-airbnb/src/1.js @@ -3,3 +3,4 @@ let a = 1; if (a === 1) { a *= 2; } + diff --git a/03. ESLint/eslint-basic/.eslintrc.js b/03. ESLint/eslint-basic/.eslintrc.js index 30bd3db..0258201 100644 --- a/03. ESLint/eslint-basic/.eslintrc.js +++ b/03. ESLint/eslint-basic/.eslintrc.js @@ -3,3 +3,4 @@ module.exports = { eqeqeq: 'error', }, }; + diff --git a/03. ESLint/eslint-basic/src/index.js b/03. ESLint/eslint-basic/src/index.js index e779062..001791b 100644 --- a/03. ESLint/eslint-basic/src/index.js +++ b/03. ESLint/eslint-basic/src/index.js @@ -2,3 +2,4 @@ var a = 1; if (a == 1) { } + diff --git a/03. ESLint/vue-app/.eslintrc.js b/03. ESLint/vue-app/.eslintrc.js index a2ccb20..fdae02f 100644 --- a/03. ESLint/vue-app/.eslintrc.js +++ b/03. ESLint/vue-app/.eslintrc.js @@ -15,3 +15,4 @@ module.exports = { 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', }, }; + diff --git a/03. ESLint/vue-app/README.md b/03. ESLint/vue-app/README.md index 9961bd3..e200db8 100644 --- a/03. ESLint/vue-app/README.md +++ b/03. ESLint/vue-app/README.md @@ -22,3 +22,4 @@ npm run lint ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). + diff --git a/03. ESLint/vue-app/babel.config.js b/03. ESLint/vue-app/babel.config.js index 757ff9b..cc782b9 100644 --- a/03. ESLint/vue-app/babel.config.js +++ b/03. ESLint/vue-app/babel.config.js @@ -3,3 +3,4 @@ module.exports = { '@vue/cli-plugin-babel/preset', ], }; + diff --git a/03. ESLint/vue-app/public/index.html b/03. ESLint/vue-app/public/index.html index 3e5a139..9a7e0e2 100644 --- a/03. ESLint/vue-app/public/index.html +++ b/03. ESLint/vue-app/public/index.html @@ -15,3 +15,4 @@ + diff --git a/03. ESLint/vue-app/src/App.vue b/03. ESLint/vue-app/src/App.vue index 7d56fa8..c4b0585 100644 --- a/03. ESLint/vue-app/src/App.vue +++ b/03. ESLint/vue-app/src/App.vue @@ -26,3 +26,4 @@ export default { margin-top: 60px; } + diff --git a/03. ESLint/vue-app/src/components/HelloWorld.vue b/03. ESLint/vue-app/src/components/HelloWorld.vue index 0a3f1eb..106dc33 100644 --- a/03. ESLint/vue-app/src/components/HelloWorld.vue +++ b/03. ESLint/vue-app/src/components/HelloWorld.vue @@ -56,3 +56,4 @@ a { color: #42b983; } + diff --git a/03. ESLint/vue-app/src/main.js b/03. ESLint/vue-app/src/main.js index e5c1db2..2d9995b 100644 --- a/03. ESLint/vue-app/src/main.js +++ b/03. ESLint/vue-app/src/main.js @@ -6,3 +6,4 @@ Vue.config.productionTip = false; new Vue({ render: (h) => h(App), }).$mount('#app'); + diff --git a/03. ESLint/课件.md b/03. ESLint/课件.md index fe08a99..972c018 100644 --- a/03. ESLint/课件.md +++ b/03. ESLint/课件.md @@ -118,4 +118,4 @@ module.exports = { 我们要做什么? - 安装好VSCode的ESLint插件 -- 学会查看ESLint错误提示 \ No newline at end of file +- 学会查看ESLint错误提示 diff --git a/04. 关于webpack的诸多问题/课件.md b/04. 关于webpack的诸多问题/课件.md index 4062936..afa2c24 100644 --- a/04. 关于webpack的诸多问题/课件.md +++ b/04. 关于webpack的诸多问题/课件.md @@ -25,3 +25,4 @@ webpack的版本会不断更新,但它的核心原理是不变的,因此, + diff --git a/05. webpack scope hoisting/demo/dist/main.js b/05. webpack scope hoisting/demo/dist/main.js index 90afd15..cadcb81 100644 --- a/05. webpack scope hoisting/demo/dist/main.js +++ b/05. webpack scope hoisting/demo/dist/main.js @@ -62,3 +62,4 @@ for (let e = 1; e < 20; e++) console.log(n(1, 10)); }, ]); + diff --git a/05. webpack scope hoisting/demo/src/index.js b/05. webpack scope hoisting/demo/src/index.js index 64cadf5..4b31380 100644 --- a/05. webpack scope hoisting/demo/src/index.js +++ b/05. webpack scope hoisting/demo/src/index.js @@ -3,3 +3,4 @@ import { getRandom } from './module'; for (let i = 1; i < 20; i++) { console.log(getRandom(1, 10)); } + diff --git a/05. webpack scope hoisting/demo/src/module.js b/05. webpack scope hoisting/demo/src/module.js index faf424d..956823b 100644 --- a/05. webpack scope hoisting/demo/src/module.js +++ b/05. webpack scope hoisting/demo/src/module.js @@ -2,3 +2,4 @@ export function getRandom(min, max) { const n = Math.random() * (max - min); return Math.floor(n) + min; } + diff --git a/05. webpack scope hoisting/demo/webpack.config.js b/05. webpack scope hoisting/demo/webpack.config.js index bd9bd9c..1d62a72 100644 --- a/05. webpack scope hoisting/demo/webpack.config.js +++ b/05. webpack scope hoisting/demo/webpack.config.js @@ -1,3 +1,4 @@ module.exports = { devtool: 'none', }; + diff --git a/05. webpack scope hoisting/课件.md b/05. webpack scope hoisting/课件.md index d9fe0e5..81db08c 100644 --- a/05. webpack scope hoisting/课件.md +++ b/05. webpack scope hoisting/课件.md @@ -16,4 +16,4 @@ > > 这样做的好处是减少了函数调用,对运行效率有一定提升,同时也降低了打包体积。 > -> 但 scope hoisting 的启用是有前提的,如果遇到某些模块多次被其他模块引用,或者使用了动态导入的模块,或者是非 ESM 的模块,都不会有 scope hoisting。 \ No newline at end of file +> 但 scope hoisting 的启用是有前提的,如果遇到某些模块多次被其他模块引用,或者使用了动态导入的模块,或者是非 ESM 的模块,都不会有 scope hoisting。 diff --git a/06. webpack5更新了什么/top-level-await/dist/main.js b/06. webpack5更新了什么/top-level-await/dist/main.js index 1e8ff3b..9a550b4 100644 --- a/06. webpack5更新了什么/top-level-await/dist/main.js +++ b/06. webpack5更新了什么/top-level-await/dist/main.js @@ -220,3 +220,4 @@ /******/ })(); //# sourceMappingURL=main.js.map + diff --git a/06. webpack5更新了什么/top-level-await/src/index.js b/06. webpack5更新了什么/top-level-await/src/index.js index 0593fea..bded467 100644 --- a/06. webpack5更新了什么/top-level-await/src/index.js +++ b/06. webpack5更新了什么/top-level-await/src/index.js @@ -1,3 +1,4 @@ const resp = await fetch("http://www.baidu.com"); const jsonBody = await resp.json(); export default jsonBody; + diff --git a/06. webpack5更新了什么/top-level-await/webpack.config.js b/06. webpack5更新了什么/top-level-await/webpack.config.js index da3ebe9..8394525 100644 --- a/06. webpack5更新了什么/top-level-await/webpack.config.js +++ b/06. webpack5更新了什么/top-level-await/webpack.config.js @@ -6,3 +6,4 @@ module.exports = { topLevelAwait: true, }, }; + diff --git a/06. webpack5更新了什么/打包体积优化/dist/index1.js b/06. webpack5更新了什么/打包体积优化/dist/index1.js index fbc14e0..00e0945 100644 --- a/06. webpack5更新了什么/打包体积优化/dist/index1.js +++ b/06. webpack5更新了什么/打包体积优化/dist/index1.js @@ -1,2 +1,2 @@ console.log("index1.js没有依赖其他模块,也没有导出任何东西"); -//# sourceMappingURL=index1.js.map \ No newline at end of file +//# sourceMappingURL=index1.js.map diff --git a/06. webpack5更新了什么/打包体积优化/dist/index2.js b/06. webpack5更新了什么/打包体积优化/dist/index2.js index 617bea3..9b14bff 100644 --- a/06. webpack5更新了什么/打包体积优化/dist/index2.js +++ b/06. webpack5更新了什么/打包体积优化/dist/index2.js @@ -3,3 +3,4 @@ console.log('f1'), console.log('f4'); })(); //# sourceMappingURL=index2.js.map + diff --git a/06. webpack5更新了什么/打包体积优化/src/index1.js b/06. webpack5更新了什么/打包体积优化/src/index1.js index fd9262b..6ceed9b 100644 --- a/06. webpack5更新了什么/打包体积优化/src/index1.js +++ b/06. webpack5更新了什么/打包体积优化/src/index1.js @@ -1 +1,2 @@ console.log("index1.js没有依赖其他模块,也没有导出任何东西"); + diff --git a/06. webpack5更新了什么/打包体积优化/src/index2.js b/06. webpack5更新了什么/打包体积优化/src/index2.js index d5bb1cd..1e68083 100644 --- a/06. webpack5更新了什么/打包体积优化/src/index2.js +++ b/06. webpack5更新了什么/打包体积优化/src/index2.js @@ -2,3 +2,4 @@ import { f1 } from './modules/a'; import * as bFuncs from './modules/b'; f1(); bFuncs.f4(); + diff --git a/06. webpack5更新了什么/打包体积优化/src/modules/a.js b/06. webpack5更新了什么/打包体积优化/src/modules/a.js index 23ad6b5..2c76c7e 100644 --- a/06. webpack5更新了什么/打包体积优化/src/modules/a.js +++ b/06. webpack5更新了什么/打包体积优化/src/modules/a.js @@ -7,3 +7,4 @@ export function f2() { console.log('f2'); f3(); } + diff --git a/06. webpack5更新了什么/打包体积优化/src/modules/b.js b/06. webpack5更新了什么/打包体积优化/src/modules/b.js index 39887f4..0528111 100644 --- a/06. webpack5更新了什么/打包体积优化/src/modules/b.js +++ b/06. webpack5更新了什么/打包体积优化/src/modules/b.js @@ -5,3 +5,4 @@ export function f3() { export function f4() { console.log("f4"); } + diff --git a/06. webpack5更新了什么/打包体积优化/webpack.config.js b/06. webpack5更新了什么/打包体积优化/webpack.config.js index 66ab72d..c7fbd40 100644 --- a/06. webpack5更新了什么/打包体积优化/webpack.config.js +++ b/06. webpack5更新了什么/打包体积优化/webpack.config.js @@ -6,3 +6,4 @@ module.exports = { index2: "./src/index2.js", }, }; + diff --git a/06. webpack5更新了什么/打包缓存/dist/main.js b/06. webpack5更新了什么/打包缓存/dist/main.js index ca46fdb..9e029d9 100644 --- a/06. webpack5更新了什么/打包缓存/dist/main.js +++ b/06. webpack5更新了什么/打包缓存/dist/main.js @@ -38711,4 +38711,4 @@ console.log((lodash__WEBPACK_IMPORTED_MODULE_0___default()), (moment__WEBPACK_IM /******/ })() ; -//# sourceMappingURL=main.js.map \ No newline at end of file +//# sourceMappingURL=main.js.map diff --git a/06. webpack5更新了什么/打包缓存/src/index.js b/06. webpack5更新了什么/打包缓存/src/index.js index 832e3db..e170ef3 100644 --- a/06. webpack5更新了什么/打包缓存/src/index.js +++ b/06. webpack5更新了什么/打包缓存/src/index.js @@ -1,3 +1,4 @@ import _ from "lodash"; import moment from "moment"; console.log(_, moment); + diff --git a/06. webpack5更新了什么/打包缓存/webpack.config.js b/06. webpack5更新了什么/打包缓存/webpack.config.js index 693d317..baaeae0 100644 --- a/06. webpack5更新了什么/打包缓存/webpack.config.js +++ b/06. webpack5更新了什么/打包缓存/webpack.config.js @@ -10,3 +10,4 @@ module.exports = { // 更多配置参考:https://webpack.docschina.org/configuration/other-options/#cache }, }; + diff --git a/06. webpack5更新了什么/清除输出目录/dist/main.js b/06. webpack5更新了什么/清除输出目录/dist/main.js index e69de29..d3f5a12 100644 --- a/06. webpack5更新了什么/清除输出目录/dist/main.js +++ b/06. webpack5更新了什么/清除输出目录/dist/main.js @@ -0,0 +1 @@ + diff --git a/06. webpack5更新了什么/清除输出目录/src/index.js b/06. webpack5更新了什么/清除输出目录/src/index.js index e69de29..d3f5a12 100644 --- a/06. webpack5更新了什么/清除输出目录/src/index.js +++ b/06. webpack5更新了什么/清除输出目录/src/index.js @@ -0,0 +1 @@ + diff --git a/06. webpack5更新了什么/清除输出目录/webpack.config.js b/06. webpack5更新了什么/清除输出目录/webpack.config.js index d03ab7b..75e5f00 100644 --- a/06. webpack5更新了什么/清除输出目录/webpack.config.js +++ b/06. webpack5更新了什么/清除输出目录/webpack.config.js @@ -4,3 +4,4 @@ module.exports = { clean: true, }, }; + diff --git a/06. webpack5更新了什么/课件.md b/06. webpack5更新了什么/课件.md index a742877..1295df4 100644 --- a/06. webpack5更新了什么/课件.md +++ b/06. webpack5更新了什么/课件.md @@ -65,4 +65,4 @@ module.exports = { 由于大部分前端项目都会用到资源型文件,因此`webpack5`原生支持了资源型模块 -详见:https://webpack.docschina.org/guides/asset-modules/ \ No newline at end of file +详见:https://webpack.docschina.org/guides/asset-modules/ diff --git a/06. webpack5更新了什么/资源模块/dist/index.html b/06. webpack5更新了什么/资源模块/dist/index.html index 4969bac..15464e0 100644 --- a/06. webpack5更新了什么/资源模块/dist/index.html +++ b/06. webpack5更新了什么/资源模块/dist/index.html @@ -6,4 +6,4 @@ - \ No newline at end of file + diff --git a/06. webpack5更新了什么/资源模块/dist/main.js b/06. webpack5更新了什么/资源模块/dist/main.js index dc9dbdc..5ca4cfb 100644 --- a/06. webpack5更新了什么/资源模块/dist/main.js +++ b/06. webpack5更新了什么/资源模块/dist/main.js @@ -138,4 +138,4 @@ console.log('raw.txt', _assets_raw_txt__WEBPACK_IMPORTED_MODULE_3__); /******/ })() ; -//# sourceMappingURL=main.js.map \ No newline at end of file +//# sourceMappingURL=main.js.map diff --git a/06. webpack5更新了什么/资源模块/src/index.js b/06. webpack5更新了什么/资源模块/src/index.js index 8d25717..66b270f 100644 --- a/06. webpack5更新了什么/资源模块/src/index.js +++ b/06. webpack5更新了什么/资源模块/src/index.js @@ -7,3 +7,4 @@ console.log('big-pic.png', bigPic); console.log('small-pic.jpg', smallPic); console.log('yueyunpeng.gif', yueyunpeng); console.log('raw.txt', raw); + diff --git a/06. webpack5更新了什么/资源模块/webpack.config.js b/06. webpack5更新了什么/资源模块/webpack.config.js index b3da0ca..abb3cc2 100644 --- a/06. webpack5更新了什么/资源模块/webpack.config.js +++ b/06. webpack5更新了什么/资源模块/webpack.config.js @@ -42,3 +42,4 @@ module.exports = { ], }, }; + diff --git a/07. npm模块安装机制/课件.md b/07. npm模块安装机制/课件.md index d98b649..275d2aa 100644 --- a/07. npm模块安装机制/课件.md +++ b/07. npm模块安装机制/课件.md @@ -19,4 +19,4 @@ > > # 设置缓存位置 > npm config set cache "新的缓存路径" -> ``` \ No newline at end of file +> ``` diff --git a/08. 模块联邦/demo/active/src/bootstrap.js b/08. 模块联邦/demo/active/src/bootstrap.js index 6f4e0a4..f9482a9 100644 --- a/08. 模块联邦/demo/active/src/bootstrap.js +++ b/08. 模块联邦/demo/active/src/bootstrap.js @@ -10,3 +10,4 @@ now($('
').appendTo(document.body)); // 活动页中有一个新闻列表 news($('
').appendTo(document.body)); + diff --git a/08. 模块联邦/demo/active/src/index.js b/08. 模块联邦/demo/active/src/index.js index b93c7a0..7bcd466 100644 --- a/08. 模块联邦/demo/active/src/index.js +++ b/08. 模块联邦/demo/active/src/index.js @@ -1 +1,2 @@ import('./bootstrap'); + diff --git a/08. 模块联邦/demo/active/src/news.js b/08. 模块联邦/demo/active/src/news.js index e765de6..cc04055 100644 --- a/08. 模块联邦/demo/active/src/news.js +++ b/08. 模块联邦/demo/active/src/news.js @@ -8,3 +8,4 @@ export default function (container) { } ul.html(html); } + diff --git a/08. 模块联邦/demo/active/webpack.config.js b/08. 模块联邦/demo/active/webpack.config.js index 2cf6af6..313888f 100644 --- a/08. 模块联邦/demo/active/webpack.config.js +++ b/08. 模块联邦/demo/active/webpack.config.js @@ -42,3 +42,4 @@ module.exports = { }), ], }; + diff --git a/08. 模块联邦/demo/home/dist/home-entry.js b/08. 模块联邦/demo/home/dist/home-entry.js index 611a82d..4e5833e 100644 --- a/08. 模块联邦/demo/home/dist/home-entry.js +++ b/08. 模块联邦/demo/home/dist/home-entry.js @@ -305,4 +305,4 @@ __webpack_require__.d(exports, { home = __webpack_exports__; /******/ })() ; -//# sourceMappingURL=home-entry.js.map \ No newline at end of file +//# sourceMappingURL=home-entry.js.map diff --git a/08. 模块联邦/demo/home/dist/index.html b/08. 模块联邦/demo/home/dist/index.html index 4ecc99c..d2da230 100644 --- a/08. 模块联邦/demo/home/dist/index.html +++ b/08. 模块联邦/demo/home/dist/index.html @@ -6,4 +6,4 @@ - \ No newline at end of file + diff --git a/08. 模块联邦/demo/home/dist/main.js b/08. 模块联邦/demo/home/dist/main.js index d30d0ef..bac0976 100644 --- a/08. 模块联邦/demo/home/dist/main.js +++ b/08. 模块联邦/demo/home/dist/main.js @@ -268,4 +268,4 @@ Promise.all(/*! import() */[__webpack_require__.e("vendors-node_modules_jquery_d /******/ })() ; -//# sourceMappingURL=main.js.map \ No newline at end of file +//# sourceMappingURL=main.js.map diff --git a/08. 模块联邦/demo/home/dist/src_bootstrap_js.js b/08. 模块联邦/demo/home/dist/src_bootstrap_js.js index 23e8240..1d0b3f1 100644 --- a/08. 模块联邦/demo/home/dist/src_bootstrap_js.js +++ b/08. 模块联邦/demo/home/dist/src_bootstrap_js.js @@ -48,4 +48,4 @@ __webpack_require__.r(__webpack_exports__); /***/ }) }]); -//# sourceMappingURL=src_bootstrap_js.js.map \ No newline at end of file +//# sourceMappingURL=src_bootstrap_js.js.map diff --git a/08. 模块联邦/demo/home/dist/src_now_js.js b/08. 模块联邦/demo/home/dist/src_now_js.js index 57d08c2..433ed18 100644 --- a/08. 模块联邦/demo/home/dist/src_now_js.js +++ b/08. 模块联邦/demo/home/dist/src_now_js.js @@ -26,4 +26,4 @@ __webpack_require__.r(__webpack_exports__); /***/ }) }]); -//# sourceMappingURL=src_now_js.js.map \ No newline at end of file +//# sourceMappingURL=src_now_js.js.map diff --git a/08. 模块联邦/demo/home/src/bootstrap.js b/08. 模块联邦/demo/home/src/bootstrap.js index 9461c21..ec79439 100644 --- a/08. 模块联邦/demo/home/src/bootstrap.js +++ b/08. 模块联邦/demo/home/src/bootstrap.js @@ -10,3 +10,4 @@ now($('
').appendTo(document.body)); // 新闻列表 news($('
').appendTo(document.body)); + diff --git a/08. 模块联邦/demo/home/src/index.js b/08. 模块联邦/demo/home/src/index.js index b93c7a0..7bcd466 100644 --- a/08. 模块联邦/demo/home/src/index.js +++ b/08. 模块联邦/demo/home/src/index.js @@ -1 +1,2 @@ import('./bootstrap'); + diff --git a/08. 模块联邦/demo/home/src/now.js b/08. 模块联邦/demo/home/src/now.js index ce690b7..bd930cc 100644 --- a/08. 模块联邦/demo/home/src/now.js +++ b/08. 模块联邦/demo/home/src/now.js @@ -6,3 +6,4 @@ export default function (container) { p.text(new Date().toLocaleString()); }, 1000); } + diff --git a/08. 模块联邦/demo/home/webpack.config.js b/08. 模块联邦/demo/home/webpack.config.js index c579a41..46fc359 100644 --- a/08. 模块联邦/demo/home/webpack.config.js +++ b/08. 模块联邦/demo/home/webpack.config.js @@ -41,3 +41,4 @@ module.exports = { }), ], }; + diff --git a/08. 模块联邦/课件.md b/08. 模块联邦/课件.md index 18a00aa..72497e6 100644 --- a/08. 模块联邦/课件.md +++ b/08. 模块联邦/课件.md @@ -294,3 +294,4 @@ module.exports = { + diff --git a/工程化面试题汇总.md b/工程化面试题汇总.md index 38a9273..8bc592a 100644 --- a/工程化面试题汇总.md +++ b/工程化面试题汇总.md @@ -681,3 +681,4 @@ > 2. npm 检查缓存中是否有相同的模块,如果有,直接从缓存中读取安装 > 3. 如果本地和缓存中均不存在,npm 会从 registry 指定的地址下载安装包,然后将其写入到本地的 node_modules 目录中,同时缓存起来。 + diff --git a/工程化面试题汇总(无答案版).md b/工程化面试题汇总(无答案版).md index f3b60b0..5829a3b 100644 --- a/工程化面试题汇总(无答案版).md +++ b/工程化面试题汇总(无答案版).md @@ -88,3 +88,4 @@ 40. 什么是 babel,有什么作用? 41. 解释一下 npm 模块安装机制是什么? +