Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Kwan的解忧杂货铺@新空间代码工作室
vue-demo
提交
fface1b1
V
vue-demo
项目概览
Kwan的解忧杂货铺@新空间代码工作室
/
vue-demo
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-demo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
fface1b1
编写于
6月 29, 2023
作者:
Kwan的解忧杂货铺@新空间代码工作室
🐭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:添加忽略文件
上级
6bd72d20
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
131 addition
and
77 deletion
+131
-77
change-rows-color/.gitignore
change-rows-color/.gitignore
+16
-0
change-rows-color/package-lock.json
change-rows-color/package-lock.json
+60
-22
change-rows-color/package.json
change-rows-color/package.json
+1
-1
change-rows-color/src/index.html
change-rows-color/src/index.html
+1
-1
change-rows-color/webpack.config.js
change-rows-color/webpack.config.js
+53
-53
未找到文件。
change-rows-color/.gitignore
0 → 100644
浏览文件 @
fface1b1
### Vue template
# gitignore template for Vue.js projects
#
# Recommended template: Node.gitignore
# TODO: where does this rule come from?
docs/_book
# TODO: where does this rule come from?
test/
.idea
node_modules
dist
\ No newline at end of file
change-rows-color/package-lock.json
浏览文件 @
fface1b1
...
...
@@ -5,10 +5,11 @@
"requires"
:
true
,
"packages"
:
{
""
:
{
"name"
:
"change-rows-color"
,
"version"
:
"1.0.0"
,
"license"
:
"ISC"
,
"dependencies"
:
{
"jquery"
:
"^3.
6
.0"
"jquery"
:
"^3.
7
.0"
},
"devDependencies"
:
{
"@babel/core"
:
"^7.14.6"
,
...
...
@@ -1243,10 +1244,24 @@
}
},
"node_modules/caniuse-lite"
:
{
"version"
:
"1.0.30001242"
,
"resolved"
:
"https://registry.nlark.com/caniuse-lite/download/caniuse-lite-1.0.30001242.tgz?cache=0&sync_timestamp=1625381800338&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fcaniuse-lite%2Fdownload%2Fcaniuse-lite-1.0.30001242.tgz"
,
"integrity"
:
"sha1-BCAWJ6vNYNyJIR8iy+I0cwbNpGs="
,
"dev"
:
true
"version"
:
"1.0.30001509"
,
"resolved"
:
"https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001509.tgz"
,
"integrity"
:
"sha512-2uDDk+TRiTX5hMcUYT/7CSyzMZxjfGu0vAUjS2g0LSD8UoXOv0LtpH4LxGMemsiPq6LCVIUjNwVM0erkOkGCDA=="
,
"dev"
:
true
,
"funding"
:
[
{
"type"
:
"opencollective"
,
"url"
:
"https://opencollective.com/browserslist"
},
{
"type"
:
"tidelift"
,
"url"
:
"https://tidelift.com/funding/github/npm/caniuse-lite"
},
{
"type"
:
"github"
,
"url"
:
"https://github.com/sponsors/ai"
}
]
},
"node_modules/chalk"
:
{
"version"
:
"2.4.2"
,
...
...
@@ -3545,9 +3560,9 @@
}
},
"node_modules/jquery"
:
{
"version"
:
"3.
6
.0"
,
"resolved"
:
"https://registry.npm
.taobao.org/jquery/download/jquery-3.6
.0.tgz"
,
"integrity"
:
"sha
1-xyoJ8Vwb3OFC9J2/EXC9+K2sJHA
="
"version"
:
"3.
7
.0"
,
"resolved"
:
"https://registry.npm
js.org/jquery/-/jquery-3.7
.0.tgz"
,
"integrity"
:
"sha
512-umpJ0/k8X0MvD1ds0P9SfowREz2LenHsQaxSohMZ5OMNEU2r0tf8pdeEFTHMFxWVxKNyU9rTtK3CWzUCTKJUeQ=
="
},
"node_modules/js-tokens"
:
{
"version"
:
"4.0.0"
,
...
...
@@ -6286,8 +6301,8 @@
},
"node_modules/webpack"
:
{
"version"
:
"5.42.1"
,
"resolved"
:
"https://registry.n
lark.com/webpack/download/webpack-5.42.1.tgz?cache=0&sync_timestamp=1625494112198&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwebpack%2Fdownload%2F
webpack-5.42.1.tgz"
,
"integrity"
:
"sha
1-M0fQ2T55/nC/YuUZgQJMgLnIw98
="
,
"resolved"
:
"https://registry.n
pmjs.org/webpack/-/
webpack-5.42.1.tgz"
,
"integrity"
:
"sha
512-msikozzXrG2Hdx+dElq0fyNvxPFsaM2dKLc/l+xkMmhO/1qwVJ9K9gY+fi/49MYWcpSP7alnK5Q78Evrd1LiqQ=
="
,
"dev"
:
true
,
"dependencies"
:
{
"@types/eslint-scope"
:
"^3.7.0"
,
...
...
@@ -6319,12 +6334,21 @@
},
"engines"
:
{
"node"
:
">=10.13.0"
},
"funding"
:
{
"type"
:
"opencollective"
,
"url"
:
"https://opencollective.com/webpack"
},
"peerDependenciesMeta"
:
{
"webpack-cli"
:
{
"optional"
:
true
}
}
},
"node_modules/webpack-cli"
:
{
"version"
:
"4.7.2"
,
"resolved"
:
"https://registry.n
lark.com/webpack-cli/download
/webpack-cli-4.7.2.tgz"
,
"integrity"
:
"sha
1-pxjbYA3m05BqQ1fgWa5YSon0waU
="
,
"resolved"
:
"https://registry.n
pmjs.org/webpack-cli/-
/webpack-cli-4.7.2.tgz"
,
"integrity"
:
"sha
512-mEoLmnmOIZQNiRl0ebnjzQ74Hk0iKS5SiEEnpq3dRezoyR3yPaeQZCMCe+db4524pj1Pd5ghZXjT41KLzIhSLw=
="
,
"dev"
:
true
,
"dependencies"
:
{
"@discoveryjs/json-ext"
:
"^0.5.0"
,
...
...
@@ -6349,6 +6373,20 @@
},
"peerDependencies"
:
{
"webpack"
:
"4.x.x || 5.x.x"
},
"peerDependenciesMeta"
:
{
"@webpack-cli/generators"
:
{
"optional"
:
true
},
"@webpack-cli/migrate"
:
{
"optional"
:
true
},
"webpack-bundle-analyzer"
:
{
"optional"
:
true
},
"webpack-dev-server"
:
{
"optional"
:
true
}
}
},
"node_modules/webpack-cli/node_modules/commander"
:
{
...
...
@@ -7830,9 +7868,9 @@
"dev"
:
true
},
"caniuse-lite"
:
{
"version"
:
"1.0.30001
242
"
,
"resolved"
:
"https://registry.n
lark.com/caniuse-lite/download/caniuse-lite-1.0.30001242.tgz?cache=0&sync_timestamp=1625381800338&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fcaniuse-lite%2Fdownload%2Fcaniuse-lite-1.0.30001242
.tgz"
,
"integrity"
:
"sha
1-BCAWJ6vNYNyJIR8iy+I0cwbNpGs
="
,
"version"
:
"1.0.30001
509
"
,
"resolved"
:
"https://registry.n
pmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001509
.tgz"
,
"integrity"
:
"sha
512-2uDDk+TRiTX5hMcUYT/7CSyzMZxjfGu0vAUjS2g0LSD8UoXOv0LtpH4LxGMemsiPq6LCVIUjNwVM0erkOkGCDA=
="
,
"dev"
:
true
},
"chalk"
:
{
...
...
@@ -9710,9 +9748,9 @@
}
},
"jquery"
:
{
"version"
:
"3.
6
.0"
,
"resolved"
:
"https://registry.npm
.taobao.org/jquery/download/jquery-3.6
.0.tgz"
,
"integrity"
:
"sha
1-xyoJ8Vwb3OFC9J2/EXC9+K2sJHA
="
"version"
:
"3.
7
.0"
,
"resolved"
:
"https://registry.npm
js.org/jquery/-/jquery-3.7
.0.tgz"
,
"integrity"
:
"sha
512-umpJ0/k8X0MvD1ds0P9SfowREz2LenHsQaxSohMZ5OMNEU2r0tf8pdeEFTHMFxWVxKNyU9rTtK3CWzUCTKJUeQ=
="
},
"js-tokens"
:
{
"version"
:
"4.0.0"
,
...
...
@@ -11948,8 +11986,8 @@
},
"webpack"
:
{
"version"
:
"5.42.1"
,
"resolved"
:
"https://registry.n
lark.com/webpack/download/webpack-5.42.1.tgz?cache=0&sync_timestamp=1625494112198&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwebpack%2Fdownload%2F
webpack-5.42.1.tgz"
,
"integrity"
:
"sha
1-M0fQ2T55/nC/YuUZgQJMgLnIw98
="
,
"resolved"
:
"https://registry.n
pmjs.org/webpack/-/
webpack-5.42.1.tgz"
,
"integrity"
:
"sha
512-msikozzXrG2Hdx+dElq0fyNvxPFsaM2dKLc/l+xkMmhO/1qwVJ9K9gY+fi/49MYWcpSP7alnK5Q78Evrd1LiqQ=
="
,
"dev"
:
true
,
"requires"
:
{
"@types/eslint-scope"
:
"^3.7.0"
,
...
...
@@ -11979,8 +12017,8 @@
},
"webpack-cli"
:
{
"version"
:
"4.7.2"
,
"resolved"
:
"https://registry.n
lark.com/webpack-cli/download
/webpack-cli-4.7.2.tgz"
,
"integrity"
:
"sha
1-pxjbYA3m05BqQ1fgWa5YSon0waU
="
,
"resolved"
:
"https://registry.n
pmjs.org/webpack-cli/-
/webpack-cli-4.7.2.tgz"
,
"integrity"
:
"sha
512-mEoLmnmOIZQNiRl0ebnjzQ74Hk0iKS5SiEEnpq3dRezoyR3yPaeQZCMCe+db4524pj1Pd5ghZXjT41KLzIhSLw=
="
,
"dev"
:
true
,
"requires"
:
{
"@discoveryjs/json-ext"
:
"^0.5.0"
,
...
...
change-rows-color/package.json
浏览文件 @
fface1b1
...
...
@@ -11,7 +11,7 @@
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"jquery"
:
"^3.
6
.0"
"jquery"
:
"^3.
7
.0"
},
"devDependencies"
:
{
"@babel/core"
:
"^7.14.6"
,
...
...
change-rows-color/src/index.html
浏览文件 @
fface1b1
...
...
@@ -6,7 +6,7 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
Document
</title>
<!-- <script src="./index.js"></script>
-->
<!-- <script src="./index.js"></script>
-->
<!-- <script src="../dist/main.js"></script> -->
<!-- <script src="../dist/bundle.js"></script> -->
<!-- 加载和引用内存中的 bundle.js -->
...
...
change-rows-color/webpack.config.js
浏览文件 @
fface1b1
...
...
@@ -11,7 +11,7 @@ const htmlPlugin = new HtmlPlugin({
})
// 注意:左侧的 { } 是解构赋值
const
{
CleanWebpackPlugin
}
=
require
(
'
clean-webpack-plugin
'
)
const
{
CleanWebpackPlugin
}
=
require
(
'
clean-webpack-plugin
'
)
// 使用 Node.js 中的导出语法,向外导出一个 webpack 的配置对象
module
.
exports
=
{
...
...
@@ -38,24 +38,24 @@ module.exports = {
// 首次打包成功后,自动打开浏览器
open
:
true
,
// 在 http 协议中,如果端口号是 80,则可以被省略
port
:
80
,
port
:
8888
,
// 指定运行的主机地址
host
:
'
127.0.0.1
'
},
module
:
{
rules
:
[
// 定义了不同模块对应的 loader
{
test
:
/
\.
css$/
,
use
:
[
'
style-loader
'
,
'
css-loader
'
]
},
{
test
:
/
\.
css$/
,
use
:
[
'
style-loader
'
,
'
css-loader
'
]
},
// 处理 .less 文件的 loader
{
test
:
/
\.
less$/
,
use
:
[
'
style-loader
'
,
'
css-loader
'
,
'
less-loader
'
]
},
{
test
:
/
\.
less$/
,
use
:
[
'
style-loader
'
,
'
css-loader
'
,
'
less-loader
'
]
},
// 处理图片文件的 loader
// 如果需要调用的 loader 只有一个,则只传递一个字符串也行,如果有多个loader,则必须指定数组
// 在配置 url-loader 的时候,多个参数之间,使用 & 符号进行分隔
{
test
:
/
\.
jpg|png|gif$/
,
use
:
'
url-loader?limit=470&outputPath=images
'
},
{
test
:
/
\.
jpg|png|gif$/
,
use
:
'
url-loader?limit=470&outputPath=images
'
},
// 使用 babel-loader 处理高级的 JS 语法
// 在配置 babel-loader 的时候,程序员只需要把自己的代码进行转换即可;一定要排除 node_modules 目录中的 JS 文件
// 因为第三方包中的 JS 兼容性,不需要程序员关心
{
test
:
/
\.
js$/
,
use
:
'
babel-loader
'
,
exclude
:
/node_modules/
}
{
test
:
/
\.
js$/
,
use
:
'
babel-loader
'
,
exclude
:
/node_modules/
}
]
},
resolve
:
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录