Skip to content

tasmanboat/understanding-webpack-babel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

understanding-webpack-babel

npm init -y
npm install --save-dev webpack webpack-cli  webpack-dev-server 

CSS 插件 
npm install --save-dev style-loader css-loader
静态文件插件
npm install --save-dev copy-webpack-plugin
JS BABEL 插件(支持 VUE.JS 和 REACT.JS )
npm install --save-dev babel-loader @babel/core @babel/preset-env 
参考
https://webpack.js.org/loaders/babel-loader/

构建插件
npm install --save-dev html-webpack-plugin clean-webpack-plugin 

配置文件 
package.json 
webpack.config.js 
babel.config.json 

项目依赖
npm install --save lodash 
npm install 

项目依赖(VUE.JS 或 REACT.JS)
npm install --save react react-dom 
npm install --save react react-dom react-router-dom react-router-dom react-redux 
npm install 
参考
https://www.cnblogs.com/lsgxeva/p/8004394.html
https://juejin.im/post/6844903904040189960#flooks

其它依赖 
npm install --save-dev @babel/preset-react react-hot-loader 
参考
https://www.robinwieruch.de/minimal-react-webpack-babel-setup


学习区
babel 的配置文件,推荐用 babel.config.json (而不是 .babelrc )
https://babeljs.io/docs/en/config-files


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published