Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
Vue-WebDriver
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高源
Vue-WebDriver
Commits
47687b56
Commit
47687b56
authored
Nov 08, 2023
by
高源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
界面样式调整
parent
7f474187
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
8 deletions
+20
-8
.DS_Store
.DS_Store
+0
-0
App.vue
src/App.vue
+0
-0
logo.png
src/assets/logo.png
+0
-0
main.js
src/main.js
+2
-2
webpack.config.js
webpack.config.js
+18
-6
No files found.
.DS_Store
View file @
47687b56
No preview for this file type
src/App.vue
View file @
47687b56
This diff is collapsed.
Click to expand it.
src/assets/logo.png
0 → 100644
View file @
47687b56
14.8 KB
src/main.js
View file @
47687b56
...
@@ -131,11 +131,11 @@ document.body.append(toolkit);
...
@@ -131,11 +131,11 @@ document.body.append(toolkit);
console
.
log
(
document
)
console
.
log
(
document
)
$
(
".tooltips"
).
html
(
`
$
(
".tooltips"
).
html
(
`
<div id="
app
"></div>
<div id="
k5WebDriver
"></div>
`
);
`
);
// global.app = new Vue(ToolKit);
// global.app = new Vue(ToolKit);
new
Vue
({
new
Vue
({
el
:
'#
app
'
,
el
:
'#
k5WebDriver
'
,
router
,
router
,
render
:
h
=>
h
(
App
)
render
:
h
=>
h
(
App
)
})
})
...
...
webpack.config.js
View file @
47687b56
let
path
=
require
(
'path'
);
let
path
=
require
(
'path'
);
let
webpack
=
require
(
'webpack'
);
let
webpack
=
require
(
'webpack'
);
const
{
VueLoaderPlugin
}
=
require
(
'vue-loader'
)
const
{
VueLoaderPlugin
}
=
require
(
'vue-loader'
)
const
HtmlWebpackPlugin
=
require
(
'html-webpack-plugin'
)
const
HtmlWebpackPlugin
=
require
(
'html-webpack-plugin'
)
module
.
exports
=
{
module
.
exports
=
{
/**
/**
...
@@ -68,7 +68,7 @@ module.exports = {
...
@@ -68,7 +68,7 @@ module.exports = {
{
{
loader
:
'url-loader'
,
loader
:
'url-loader'
,
options
:
{
options
:
{
limit
:
819
2
,
limit
:
209715
2
,
esModule
:
false
,
// 关闭es6模块化解析
esModule
:
false
,
// 关闭es6模块化解析
//[hash:7]取图片的hash的前7位 [ext]取文件原来扩展名
//[hash:7]取图片的hash的前7位 [ext]取文件原来扩展名
// name: utils.assetsPath('img/[name].[hash:7].[ext]')
// name: utils.assetsPath('img/[name].[hash:7].[ext]')
...
@@ -76,15 +76,27 @@ module.exports = {
...
@@ -76,15 +76,27 @@ module.exports = {
},
},
],
],
},
},
{
test
:
/
\.(
woff2
?
|eot|ttf|otf
)(\?
.*
)?
$/
,
use
:
[
{
loader
:
'url-loader'
,
options
:
{
name
:
'fonts/[name].[hash:8].[ext]'
,
limit
:
2097152
,
},
},
],
},
]
]
},
},
devServer
:
{
devServer
:
{
hot
:
true
,
// 启用 webpack 的 热模块替换 特性
hot
:
true
,
// 启用 webpack 的 热模块替换 特性
open
:
true
,
//初次打包完成后,自动打开浏览器
open
:
true
,
//初次打包完成后,自动打开浏览器
host
:
'127.0.0.1'
,
//实时打包所使用的主机地址
host
:
'127.0.0.1'
,
//实时打包所使用的主机地址
port
:
8080
// 将本地启动的服务默认端口号设置为8080
port
:
8080
// 将本地启动的服务默认端口号设置为8080
},
},
plugins
:
[
plugins
:
[
// 生成一个 HTML5 文件, 在 body 中使用 script 标签引入你所有 webpack 生成的 bundle。 只需添加该插件到你的 webpack 配置中
// 生成一个 HTML5 文件, 在 body 中使用 script 标签引入你所有 webpack 生成的 bundle。 只需添加该插件到你的 webpack 配置中
new
HtmlWebpackPlugin
({
new
HtmlWebpackPlugin
({
template
:
'index/index.html'
template
:
'index/index.html'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment