feat vite feature

This commit is contained in:
2024-07-30 14:49:42 +08:00
parent ed728f66d3
commit 4f92af3360
21 changed files with 8090 additions and 1446 deletions

BIN
webpackTest/src/img/img.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<h1>hello world shenjianZ</h1>
</body>
</html>

11
webpackTest/src/index.js Normal file
View File

@@ -0,0 +1,11 @@
import m1 from './m1'
import m2 from './m2'
import './style/index.css'
// 引入图片并使用
import img from './img/img.png'
const imgElement = document.createElement('img')
imgElement.src = img
const a = 2;
console.log(a,'@@')
m1.m1Method()
m2.m2Method()

6
webpackTest/src/m1.js Normal file
View File

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

5
webpackTest/src/m2.js Normal file
View File

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

View File

@@ -0,0 +1,3 @@
h1{
margin:10px;
}