Browse Source

chore: remove duplicated fileName

pull/1188/head
Benjy Cui 9 years ago
parent
commit
12e51707bf
  1. 1
      components/locale-provider/index.md
  2. 2
      package.json
  3. 2
      scripts/build-common.js
  4. 2
      scripts/build-demos-list.js

1
components/locale-provider/index.md

@ -3,6 +3,7 @@
- category: Components
- chinese: 国际化
- cols: 1
- type: 其它
---

2
package.json

@ -71,7 +71,7 @@
"warning": "~2.1.0"
},
"devDependencies": {
"antd-md-loader": "0.1.0-beta.8",
"antd-md-loader": "0.1.0-beta.9",
"atool-build": "^0.5.0",
"babel-cli": "^6.2.0",
"babel-core": "^6.2.1",

2
scripts/build-common.js

@ -10,7 +10,7 @@ module.exports = function buildCommon(dirs, outputFile) {
let content = 'module.exports = {';
mds.forEach((fileName) => {
content += `\n '${fileName}': require('antd-md?fileName=${fileName}!../../${fileName}'),`;
content += `\n '${fileName}': require('antd-md!../../${fileName}'),`;
});
content += '\n};';

2
scripts/build-demos-list.js

@ -20,7 +20,7 @@ module.exports = function buildDemosList(dirs, outputPath) {
Object.keys(groupedDemos).forEach((key) => {
content += `\n '${key}': [`;
groupedDemos[key].forEach((fileName) => {
content += `\n require('antd-md?demo&fileName=${fileName}!../../${fileName}'),`;
content += `\n require('antd-md?demo!../../${fileName}'),`;
});
content += '\n ],'
});

Loading…
Cancel
Save