Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-blocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
pro-blocks
Commits
bfa9a32f
Commit
bfa9a32f
authored
Aug 14, 2018
by
sorrycc
Committed by
陈帅
Aug 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only enable hardSource and dll for mac
parent
8f4c3f6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
config/config.js
config/config.js
+8
-1
package.json
package.json
+2
-2
No files found.
config/config.js
View file @
bfa9a32f
...
...
@@ -20,7 +20,14 @@ export default {
default
:
'
zh-CN
'
,
// default zh-CN
baseNavigator
:
true
,
// default true, when it is true, will use `navigator.language` overwrite default
},
dll
:
[
'
dva
'
,
'
dva/router
'
,
'
dva/saga
'
,
'
dva/fetch
'
],
...(
require
(
'
os
'
).
platform
()
===
'
darwin
'
?
{
dll
:
[
'
dva
'
,
'
dva/router
'
,
'
dva/saga
'
,
'
dva/fetch
'
],
hardSource
:
true
,
}
:
{}
),
},
],
],
...
...
package.json
View file @
bfa9a32f
...
...
@@ -6,9 +6,9 @@
"scripts"
:
{
"precommit"
:
"npm run lint-staged"
,
"presite"
:
"npm run generate-mock && cd functions && npm install"
,
"start"
:
"
cross-env
umi dev"
,
"start"
:
"umi dev"
,
"start:no-mock"
:
"cross-env MOCK=none umi dev"
,
"build"
:
"
cross-env
umi build"
,
"build"
:
"umi build"
,
"site"
:
"npm run presite && npm run build && firebase deploy"
,
"analyze"
:
"cross-env ANALYZE=1 umi build"
,
"lint:style"
:
"stylelint
\"
src/**/*.less
\"
--syntax less"
,
...
...
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