mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
fix site style breaks when there is lib directory
This commit is contained in:
parent
bcd3b63c50
commit
52577054ad
@ -54,7 +54,7 @@ module.exports = {
|
||||
webpackConfig(config) {
|
||||
config.resolve.alias = {
|
||||
'antd/lib': path.join(process.cwd(), 'components'),
|
||||
antd: process.cwd(),
|
||||
antd: path.join(process.cwd(), 'index'),
|
||||
site: path.join(process.cwd(), 'site'),
|
||||
'react-router': 'react-router/umd/ReactRouter',
|
||||
};
|
||||
@ -67,15 +67,6 @@ module.exports = {
|
||||
},
|
||||
]);
|
||||
|
||||
config.babel.plugins.push([
|
||||
require.resolve('babel-plugin-import'),
|
||||
{
|
||||
style: true,
|
||||
libraryName: 'antd',
|
||||
libraryDirectory: 'components',
|
||||
},
|
||||
]);
|
||||
|
||||
return config;
|
||||
},
|
||||
};
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { FormattedMessage, injectIntl } from 'react-intl';
|
||||
import { Select, Modal } from 'antd';
|
||||
import { version as antdVersion } from 'antd/package.json';
|
||||
import { version as antdVersion } from '../../../../package.json';
|
||||
import * as utils from '../utils';
|
||||
|
||||
const Option = Select.Option;
|
||||
|
Loading…
Reference in New Issue
Block a user