Commit 6132250a by 万亚飞

fix

parent 2ad86f68
...@@ -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 }]
], ],
......
...@@ -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
......
...@@ -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">
......
This source diff could not be displayed because it is too large. You can view the blob instead.
@import './base.less'; @import './base.less';
@import './antd-mobile.min.css';
.ellipsis1 { .ellipsis1 {
.ellipsis(1); .ellipsis(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment