-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
75 additions
and
63 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
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,10 +0,0 @@ | ||
# 命令 | ||
npm i | ||
npm install -g babel-cli | ||
npm run babel-build | ||
打开index.html | ||
# 说明 | ||
babel 命令需要安装在-g环境才能用babel的命令行 | ||
babel是个编译器,能把你的js代码编译成其他版本js,至于编译成什么版本的js需要一个.babelrc来规定。 | ||
所以需要安装babel-preset-env,再再.babelrc里写明用这个预先布置 | ||
npm run babel-build是执行package.json里的scripts,为了生成可执行的index.dist.js | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,5 +1,5 @@ | ||
{ | ||
"name": "webpack", | ||
"name": "webpack-demo", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
|
File renamed without changes.
This file was deleted.
Oops, something went wrong.