Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
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
marketing-web
marketing
Commits
308aa41c
Commit
308aa41c
authored
Oct 17, 2019
by
chenxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:<%= htmlWebpackPlugin.options.BASE_URL %>
parent
5071a49b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
webpack.dev.conf.js
build/webpack.dev.conf.js
+2
-1
webpack.prod.conf.js
build/webpack.prod.conf.js
+1
-0
index.html
index.html
+3
-3
No files found.
build/webpack.dev.conf.js
View file @
308aa41c
...
...
@@ -51,7 +51,8 @@ const devWebpackConfig = merge(baseWebpackConfig, {
new
HtmlWebpackPlugin
({
filename
:
'index.html'
,
template
:
'index.html'
,
inject
:
true
inject
:
true
,
BASE_URL
:
'/'
}),
// copy custom static assets
new
CopyWebpackPlugin
([
...
...
build/webpack.prod.conf.js
View file @
308aa41c
...
...
@@ -64,6 +64,7 @@ const webpackConfig = merge(baseWebpackConfig, {
filename
:
config
.
build
.
index
,
template
:
'index.html'
,
inject
:
true
,
BASE_URL
:
'/marketing/'
,
minify
:
{
removeComments
:
true
,
collapseWhitespace
:
true
,
...
...
index.html
View file @
308aa41c
...
...
@@ -3,10 +3,10 @@
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<link
rel=
"shortcut icon"
href=
"/img/favicon.ico"
>
<link
rel=
"shortcut icon"
href=
"
<%= htmlWebpackPlugin.options.BASE_URL %>static
/img/favicon.ico"
>
<title>
GIC后台
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
/
static/css/iconfont.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
/
static/css/common.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%= htmlWebpackPlugin.options.BASE_URL %>
static/css/iconfont.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<%= htmlWebpackPlugin.options.BASE_URL %>
static/css/common.css"
>
<link
rel=
"stylesheet"
href=
"https://unpkg.com/element-ui/lib/theme-chalk/index.css"
>
<!-- element 皮肤 -->
<!-- <link rel="stylesheet" type="text/css" href="http://web-1251519181.file.myqcloud.com/lib/elementUI/theme.1.0.1/index.css"> -->
...
...
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