Compare commits
No commits in common. "c103c0157f4f382040a3d28806c2e4522ae26ef8" and "7e8a6f07c2e5eec29c91af723139b645ede6ea24" have entirely different histories.
c103c0157f
...
7e8a6f07c2
|
|
@ -1,8 +0,0 @@
|
|||
.idea
|
||||
# 忽略所有子项目中的 dist 文件夹
|
||||
*/dist/
|
||||
*/dist/*
|
||||
|
||||
# 忽略所有子项目中的 node_modules 文件夹
|
||||
*/node_modules/
|
||||
*/node_modules/*
|
||||
12
01/README.md
12
01/README.md
|
|
@ -1,12 +0,0 @@
|
|||
**初始化项目**
|
||||
```shell
|
||||
npm init -y
|
||||
```
|
||||
**安装webpack依赖(开发依赖)**
|
||||
```shell
|
||||
npm add -D webpack webpack-cli
|
||||
```
|
||||
**打包项目**
|
||||
```shell
|
||||
npx webpack
|
||||
```
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
import m1 from './m1'
|
||||
import m2 from './m2'
|
||||
const a = 2;
|
||||
console.log(a,'@@')
|
||||
m1.m1Method()
|
||||
m2.m2Method()
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
import $ from 'jquery'
|
||||
export default {
|
||||
m1Method() {
|
||||
console.log('m1Method')
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
export default {
|
||||
m2Method() {
|
||||
console.log('m2Method')
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
module.exports = {
|
||||
mode: "development",
|
||||
entry: './src/index.js',
|
||||
output: {
|
||||
filename: 'bundle.js'
|
||||
},
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue