当前位置:网站首页>2020.12.4 log
2020.12.4 log
2022-08-09 02:03:00 【Robin Luo Bing】
1.
npm: Package manager for Nodejs.
webpack: Its main purpose is to prepare all the static resources that need to be published on the browser side through CommonJS syntax, such as merging and packaging of resources.
vue-cli: User-generated Vue project template.(To help you start a Vue project quickly, that is, to give you a set of Vue structure, including basic dependent libraries, you can install it only with npm install)
Start:
2. Detailed step-by-step tutorial for node.js installation:
https://blog.csdn.net/antma/article/details/86104068
https://www.cnblogs.com/lgx5/p/10732016.html
Be careful not to install the latest version by default when installing webpack: https://blog.csdn.net/weixin_43750031/article/details/84307507
3. Use node.js to build a server and access static web pages: https://www.cnblogs.com/pengshengguang/p/8318563.html
4. Introduction to nodejs server anywhere: https://www.cnblogs.com/cssfirefly/p/5736139.html
5, npm scripts usage guide: http://www.ruanyifeng.com/blog/2016/10/npm_scripts.html
6.
Commands to install and uninstall webpack and view versions:
## Install globally:
cnpm i webpack webpack-cli -g
## Partial installation:
cnpm i webpack webpack-cli -D
## Global uninstall
cnpm uninstall webpack webpack-cli -g
## Partial uninstall
cnpm uninstall webpack webpack-cli
##View local version
npx webpack -v
7. Experimental document: https://www.runoob.com/w3cnote/webpack-tutorial.html
The command of webpack runoob1.js bundle.js should be modified to: webpack ./runoob1.js -o ./dist .Because of the new version of webpack the command is modified.
8. Common commands of webpack:
[1.npm install webpack -g //Install webpack globally
[2.npm init -y // Initialize the default package.json file
[3.npm install webpack --save-dev //Download the webpack plugin to node_modules and fall in love with the webpack configuration content in the package.json file
[4.webpack //Package the project
[5.webpack --watch //Automatically monitor file changes
[6.webpack --display-modules //Display hidden modules when packing
[7.webpack --display-chunks //Display chunks when packing
【8.webpack --display-error-details //Display detailed error information
[9.npm install {whatever}-loader --save-dev //Install the loader and configure the loader into the package.json file
9, Webpack three packaging methods: https://blog.csdn.net/qq_25927437/article/details/85785533
10. The meaning of npm --save: https://www.jianshu.com/p/437ad603d49d
11. The difference between npm local installation and global installation files: https://blog.csdn.net/u013594477/article/details/79861404
边栏推荐
- 力扣刷题记录3.1-----977. 有序数组的平方
- 日文翻译-在线免费日文翻译软件
- Observer pattern
- How SEMRush finds keywords for advertising
- 力扣刷题记录10.1-----19. 删除链表的倒数第 N 个结点
- 力扣刷题记录2.1-----27. 移除元素
- typescript90-使用类型文件声明类型
- 2022 PMP Project Management Certification Exam Registration Guide (1)
- MT4/MQL4入门到精通EA课程第二课-常用的功能函数
- 史上最猛“员工”,疯狂吐槽亿万富翁老板小扎:那么有钱,还总穿着同样的衣服!
猜你喜欢
右键新建缺少word、excel选项问题处理
eladmin容器部署超详细过程
spdlog日志库的封装使用
力扣刷题记录10.1-----19. 删除链表的倒数第 N 个结点
企业里Foxmail邮箱问题解决方法汇总
日文翻译-在线免费日文翻译软件
[Cellular Automata] Simulation of emergency evacuation of disaster personnel under social force factors based on cellular automata with matlab code attached
数字孪生+燃气管理,开启智慧燃气管理新模式
全文翻译:欧盟第29条数据保护工作组 数据保护官指南
Grid布局介绍
随机推荐
.reduce()的简单例子
String compression
d初化模板构造器
2022杭电多校第五场1007(生成函数+启发式合并+ntt)
JDBC技术(一)——一个简单的JDBC测试
ONNX是什么?怎么用?[简明解读版]
知识图谱学习笔记——我的第一次知识图谱实践
项目经理VS产品经理,二者到底有何不同?
Introduction to LVGL (based on v8.1-8.2)
Dapr学习(4)之eShopOnDapr部署(Rancher2.63&k3s)
VOIP使用单端口替换动态端口池进行UDP通信
2022护眼产品展,北京眼健康展,眼科医学展,近视矫正设备展
ffplay playback control
『Another Redis DeskTop Manager』用了这款Redis可视化工具,分析效率提升12倍
gstreamer 记录
JDBC技术(二)——设置通用的sql和配置文件
右键新建缺少word、excel选项问题处理
日文翻译-在线免费日文翻译软件
Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules
力扣刷题记录10.1-----19. 删除链表的倒数第 N 个结点