Compare commits

..

No commits in common. "c103c0157f4f382040a3d28806c2e4522ae26ef8" and "7e8a6f07c2e5eec29c91af723139b645ede6ea24" have entirely different histories.

8 changed files with 0 additions and 1437 deletions

8
.gitignore vendored
View File

@ -1,8 +0,0 @@
.idea
# 忽略所有子项目中的 dist 文件夹
*/dist/
*/dist/*
# 忽略所有子项目中的 node_modules 文件夹
*/node_modules/
*/node_modules/*

View File

@ -1,12 +0,0 @@
**初始化项目**
```shell
npm init -y
```
**安装webpack依赖开发依赖**
```shell
npm add -D webpack webpack-cli
```
**打包项目**
```shell
npx webpack
```

1372
01/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,20 +0,0 @@
{
"name": "01",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack --config webpack.config.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"webpack": "^5.93.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"jquery": "^3.7.1"
}
}

View File

@ -1,6 +0,0 @@
import m1 from './m1'
import m2 from './m2'
const a = 2;
console.log(a,'@@')
m1.m1Method()
m2.m2Method()

View File

@ -1,6 +0,0 @@
import $ from 'jquery'
export default {
m1Method() {
console.log('m1Method')
}
}

View File

@ -1,5 +0,0 @@
export default {
m2Method() {
console.log('m2Method')
}
}

View File

@ -1,8 +0,0 @@
module.exports = {
mode: "development",
entry: './src/index.js',
output: {
filename: 'bundle.js'
},
}