Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fe-app-h5
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
万亚飞
fe-app-h5
Commits
9a407488
Commit
9a407488
authored
May 28, 2019
by
万亚飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b207001c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
12 deletions
+15
-12
webpack.prod.js
config/webpack.prod.js
+11
-12
Upload.js
src/Components/common/Upload/Upload.js
+1
-0
global.less
src/static/styles/global.less
+3
-0
No files found.
config/webpack.prod.js
View file @
9a407488
...
...
@@ -99,7 +99,6 @@ module.exports = {
},
{
test
:
/
\.(
jpg|jpeg|bmp|svg|png|webp|gif
)
$/
,
use
:
[
{
loader
:
'url-loader'
,
...
...
@@ -160,17 +159,17 @@ module.exports = {
minifyURLs
:
true
}
}),
new
PreloadWebpackPlugin
({
rel
:
'preload'
,
as
(
entry
)
{
if
(
/
\.
css$/
.
test
(
entry
))
return
'style'
;
if
(
/
\.
woff$/
.
test
(
entry
))
return
'font'
;
if
(
/
\.
png$/
.
test
(
entry
))
return
'image'
;
return
'script'
;
},
include
:
'allChunks'
//include: ['app']
}),
//
new PreloadWebpackPlugin({
//
rel: 'preload',
//
as(entry) {
//
if (/\.css$/.test(entry)) return 'style';
//
if (/\.woff$/.test(entry)) return 'font';
//
if (/\.png$/.test(entry)) return 'image';
//
return 'script';
//
},
//
include: 'allChunks'
//
//include: ['app']
//
}),
new
webpack
.
NamedModulesPlugin
(),
// new WorkboxPlugin.GenerateSW({
// clientsClaim: true,
...
...
src/Components/common/Upload/Upload.js
View file @
9a407488
...
...
@@ -6,6 +6,7 @@ import storage from '@/utils/storage.plugin';
import
{
PhotoSwipeGallery
}
from
'react-photoswipe'
;
import
*
as
qiniu
from
'qiniu-js'
;
import
API
from
'./api'
;
import
'react-photoswipe/lib/photoswipe.css'
;
class
UpLoad
extends
Component
{
state
=
{
...
...
src/static/styles/global.less
View file @
9a407488
...
...
@@ -766,6 +766,9 @@ textarea::placeholder {
margin-top: -5px;
right: 0;
}
.train-warp .am-list-item .am-list-line .am-list-extra:after {
right: 15px;
}
.yui-cell:after {
content: ' ';
position: absolute;
...
...
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