文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
开发环境
git
- git branch
- git status
- git diff
- git add .
- git commit -m “xxx”
- git checkout xxx
- git checkout -b xxx
- git push origin main
- git pull origin main
- git fetch
- git merge xxx
- git stash
- git stash pop
调试工具
- chrome 调试工具
抓包
- 移动端 h5 页,查看网络请求,需要用工具抓包
- windows 一般用 fiddler
- Mac OS 一般用 charles
- 手机和电脑连同一个局域网
- 将手机代理到电脑上
- 手机浏览网页,即可抓包
- 查看网络请求
- 网址地理
- https
webpack
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
module.exports = {
mode: "development",
entry: path.join(__dirname, "src", "index.js"),
output: {
filename: "bundle.js",
path: path.join(__dirname, "dist"),
},
module: {
rules: [
{
test: /\.js$/,
loader: ["babel-loader"],
include: path.join(__dirname, "src"),
exclude: /node_modules/,
},
],
},
plugins: [
new HtmlWebpackPlugin({
template: path.join(__dirname, "src", "index.html"),
filename: "index.html",
}),
],
devServer: {
port: 3000,
contentBase: path.join(__dirname, "dist"),
},
};
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
module.exports = {
mode: "production",
entry: path.join(__dirname, "src", "index.js"),
output: {
filename: "bundle.[contenthash].js",
path: path.join(__dirname, "dist"),
},
module: {
rules: [
{
test: /\.js$/,
loader: ["babel-loader"],
include: path.join(__dirname, "src"),
exclude: /node_modules/,
},
],
},
plugins: [
new HtmlWebpackPlugin({
template: path.join(__dirname, "src", "index.html"),
filename: "index.html",
}),
],
};
babel
{
"presets": ["@babel/preset-env"]
}
linux 常用命令
- ssh root@xxx.xxx.xx.xx
- ls、ls -a、ll
- mkdir xxx
- touch xxx
- vi xxx
- vim xxx
- rm -rf xxx
- cd xxx
- mv xxx xxx
- cp xxx xxx
- cat xxx
- grep xxx xxx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论