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
6132250a
Commit
6132250a
authored
May 27, 2019
by
万亚飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2ad86f68
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
3 deletions
+3
-3
webpack.dev.js
config/webpack.dev.js
+1
-1
webpack.prod.js
config/webpack.prod.js
+1
-1
index.js
src/index.js
+0
-1
antd-mobile.min.css
src/static/styles/antd-mobile.min.css
+0
-0
global.less
src/static/styles/global.less
+1
-0
No files found.
config/webpack.dev.js
View file @
6132250a
...
@@ -53,7 +53,7 @@ module.exports = {
...
@@ -53,7 +53,7 @@ module.exports = {
//支持import 懒加载
//支持import 懒加载
'@babel/plugin-syntax-dynamic-import'
,
'@babel/plugin-syntax-dynamic-import'
,
//andt-mobile按需加载 true是less,如果不用less style的值可以写'css'
//andt-mobile按需加载 true是less,如果不用less style的值可以写'css'
[
'import'
,
{
libraryName
:
'antd-mobile'
,
style
:
true
}],
//
['import', { libraryName: 'antd-mobile', style: true }],
//识别class组件
//识别class组件
[
'@babel/plugin-proposal-class-properties'
,
{
loose
:
true
}]
[
'@babel/plugin-proposal-class-properties'
,
{
loose
:
true
}]
],
],
...
...
config/webpack.prod.js
View file @
6132250a
...
@@ -58,7 +58,7 @@ module.exports = {
...
@@ -58,7 +58,7 @@ module.exports = {
//支持
//支持
'@babel/plugin-syntax-dynamic-import'
,
'@babel/plugin-syntax-dynamic-import'
,
//true是less, 可以写'css' 如果不用less
//true是less, 可以写'css' 如果不用less
[
'import'
,
{
libraryName
:
'antd-mobile'
,
style
:
true
}],
//
['import', { libraryName: 'antd-mobile', style: true }],
[
'@babel/plugin-proposal-class-properties'
,
{
loose
:
true
}]
[
'@babel/plugin-proposal-class-properties'
,
{
loose
:
true
}]
],
],
cacheDirectory
:
true
cacheDirectory
:
true
...
...
src/index.js
View file @
6132250a
...
@@ -6,7 +6,6 @@ import { HashRouter, BrowserRouter, Router } from 'react-router-dom';
...
@@ -6,7 +6,6 @@ import { HashRouter, BrowserRouter, Router } from 'react-router-dom';
import
{
Provider
}
from
'react-redux'
;
import
{
Provider
}
from
'react-redux'
;
// import './mock';
// import './mock';
// import './assets/index.less';
// import './assets/index.less';
import
'antd-mobile/dist/antd-mobile.min.css'
;
import
'./static/styles/global.less'
;
import
'./static/styles/global.less'
;
ReactDOM
.
render
(
ReactDOM
.
render
(
<
BrowserRouter
basename
=
"/new"
>
<
BrowserRouter
basename
=
"/new"
>
...
...
src/static/styles/antd-mobile.min.css
0 → 100644
View file @
6132250a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/static/styles/global.less
View file @
6132250a
@import './base.less';
@import './base.less';
@import './antd-mobile.min.css';
.ellipsis1 {
.ellipsis1 {
.ellipsis(1);
.ellipsis(1);
...
...
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