2024年1月17日
摘要: Pure Function 纯函数 1.纯函数一定要有输入和输出,函数内使用到的变量最好都应该从参数中获取 const pure = (a,b,c) { return a + b + c } let c = 1 const impure = (a, b) { return a + b + c } c 阅读全文
posted @ 2024-01-17 17:05 Karle 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 通过webpack.config.js文件进行配置项编写 与Vite不同,webpack配置文件只需要暴露一个对象即可,包含entry,output,module,plugin,devServer等 基本配置项 entry 打包后的入口文件 entry: path.join(__dirname, ' 阅读全文
posted @ 2024-01-17 15:59 Karle 阅读(9) 评论(0) 推荐(0) 编辑