Skip to content

Commit 038b6fc

Browse files
committed
修改antd-form-component/lib失效问题
1 parent 30d01d9 commit 038b6fc

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

config/webpack.config.dev.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ var config = {
183183
resolve: {
184184
alias: {
185185
src: paths.src,
186+
'antd-form-component/lib': path.resolve(process.cwd(), 'src'),
186187
'antd-form-component': path.resolve(process.cwd(), 'src'),
187188
},
188189
//不可留空字符串

config/webpack.config.prod.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ var config = {
175175
resolve: {
176176
alias: {
177177
src: paths.src,
178+
'antd-form-component/lib': path.resolve(process.cwd(), 'src'),
178179
'antd-form-component': path.resolve(process.cwd(), 'src'),
179180
},
180181
//不可留空字符串

demo/src/view/layout/main/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { Menu } from 'antd';
55

66
import 'antd/dist/antd.css';
77
import 'src/style/css/layout-main.less';
8-
import 'antd-form-component/assets/css/style.less';
8+
import 'antd-form-component/lib/assets/css/style.less';
99
//antd@2.x.x需要引入下面样式
10-
// import 'antd-form-component/assets/css/style@2.x.x.less';
10+
// import 'antd-form-component/lib/assets/css/style@2.x.x.less';
1111

1212
class MainLayout extends React.Component {
1313
renderItem(title, viewId) {

0 commit comments

Comments
 (0)