-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 支持ES2020语法 && update build tools
- Loading branch information
BiYuqi
committed
Jan 14, 2021
1 parent
e53ed6a
commit b56286f
Showing
7 changed files
with
105 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[*.{js,jsx,ts,tsx,vue}] | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,46 @@ | ||
## 迭代日志 | ||
|
||
2021.01.14 | ||
|
||
- 新增 `@babel/plugin-proposal-object-rest-spread`, `@babel/plugin-proposal-optional-chaining`两个插件支持 ES2020 语法可选链, 展开符, 快来体验最新的语吧 | ||
|
||
e.g: | ||
|
||
```js | ||
const test = { | ||
a: 123 | ||
} | ||
console.log(test?.b) // 不会挂掉报错 | ||
``` | ||
2019.06.01!! | ||
* 支持配置注入script, 优势避免硬编码插入script,直接支持构建时插入script | ||
[配置文件](https://github.com/BiYuqi/webpack-seed/blob/master/src/common/libs/scriptTags.js) | ||
[本项目使用案例](https://github.com/BiYuqi/webpack-seed/blob/master/src/layout/base/headerBase/headerBase.ejs#L14) | ||
2019.03.29 | ||
* 变更基础模板位置from `src/component/` to `src/layout/base` | ||
- 支持配置注入 script, 优势避免硬编码插入 script,直接支持构建时插入 script [配置文件](https://github.com/BiYuqi/webpack-seed/blob/master/src/common/libs/scriptTags.js) [本项目使用案例](https://github.com/BiYuqi/webpack-seed/blob/master/src/layout/base/headerBase/headerBase.ejs#L14) | ||
2019.03.29 | ||
- 变更基础模板位置 from `src/component/` to `src/layout/base` | ||
2019.02.06 | ||
- 新增命令行创建页面[README](./bin/README.md) | ||
2018.10.22 | ||
- 增加个性化模板案例[layout-without-header-footer](https://github.com/BiYuqi/webpack-seed/tree/master/src/layout/layout-without-header-footer) | ||
2018.10.21 | ||
- 增加模板片段支持,页面中可复用的 html 都可以抽离为 ejs 模板片段, 由 ejs-loader 进行编译 [模板](https://github.com/BiYuqi/webpack-seed/blob/master/src/templates/index.test.ejs) [使用](https://github.com/BiYuqi/webpack-seed/blob/master/src/views/index/index.js#L7) | ||
2019.02.06 | ||
* 新增命令行创建页面[README](./bin/README.md) | ||
2018.10.15 | ||
2018.10.22 | ||
* 增加个性化模板案例[layout-without-header-footer](https://github.com/BiYuqi/webpack-seed/tree/master/src/layout/layout-without-header-footer) | ||
- 静态资源 vendor 文件夹分类,common 与 fixIe 这两个文件夹的文件都会被自动注入到页面引用; 使用者只需要配置[lib.js](https://github.com/BiYuqi/webpack-seed/blob/master/src/common/libs/libs.js)即可 | ||
2018.10.21 | ||
* 增加模板片段支持,页面中可复用的html都可以抽离为ejs模板片段, 由ejs-loader进行编译 [模板](https://github.com/BiYuqi/webpack-seed/blob/master/src/templates/index.test.ejs) [使用](https://github.com/BiYuqi/webpack-seed/blob/master/src/views/index/index.js#L7) | ||
2018.10.11 | ||
2018.10.15 | ||
* 静态资源vendor文件夹分类,common与fixIe 这两个文件夹的文件都会被自动注入到页面引用; 使用者只需要配置[lib.js](https://github.com/BiYuqi/webpack-seed/blob/master/src/common/libs/libs.js)即可 | ||
- 单独抽离 css 样式问题修复 | ||
2018.10.11 | ||
* 单独抽离css样式问题修复 | ||
2018.10.07 | ||
2018.10.07 | ||
* 修改打包后js输出路径,原有js跟着页面文件夹打包后在一起, 现在统一打包到dist/js目录下, 理由是页面script 展示好看...属于优化项 | ||
- 修改打包后 js 输出路径,原有 js 跟着页面文件夹打包后在一起, 现在统一打包到 dist/js 目录下, 理由是页面 script 展示好看...属于优化项 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
## Component? | ||
|
||
Can store common component here. | ||
就是可以自定义一些 js 插件放到这里,比如 tab 组件, dialog 组件等用 js 来实现操作 dom 的公用组件. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters