Skip to content

Commit

Permalink
refactor: 重命名 CDN 变量 (#997)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfu1 authored Nov 25, 2021
1 parent 04f3ec2 commit 7672a9d
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions config/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ const resolveApp = (relativePath) => path.resolve(appDirectory, relativePath);

process.env.NODE_ENV = 'production';

const getWebpackConfig = (name) => {
const getWebpackConfig = (name, library) => {
return {
entry: {
[name]: './src/index.ts',
},
output: {
filename: '[name].min.js',
library: '[name]',
library: library,
libraryTarget: 'umd',
path: resolveApp('dist/'),
},
Expand Down
2 changes: 1 addition & 1 deletion packages/charts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": false,
"name": "@ant-design/charts",
"version": "1.3.0",
"version": "1.3.1",
"description": "AntV upper level visual component library",
"bugs": {
"url": "https://github.com/ant-design/ant-design-charts/issues"
Expand Down
2 changes: 1 addition & 1 deletion packages/charts/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const { getWebpackConfig } = require('../../config/webpack');

module.exports = getWebpackConfig('charts');
module.exports = getWebpackConfig('charts', 'Charts');
2 changes: 1 addition & 1 deletion packages/flowchart/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const { getWebpackConfig } = require('../../config/webpack');

module.exports = getWebpackConfig('flowchart');
module.exports = getWebpackConfig('flowchart', 'Flowchart');
2 changes: 1 addition & 1 deletion packages/graphs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ant-design/graphs",
"version": "1.0.1",
"version": "1.0.2",
"description": "Relation graph",
"bugs": {
"url": "https://github.com/ant-design/ant-design-charts/issues"
Expand Down
2 changes: 1 addition & 1 deletion packages/graphs/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const { getWebpackConfig } = require('../../config/webpack');

module.exports = getWebpackConfig('graphs');
module.exports = getWebpackConfig('graphs', 'Graphs');
2 changes: 1 addition & 1 deletion packages/maps/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ant-design/maps",
"version": "0.0.3",
"version": "0.0.4",
"description": "maps",
"bugs": {
"url": "https://github.com/ant-design/ant-design-charts/issues"
Expand Down
2 changes: 1 addition & 1 deletion packages/maps/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const { getWebpackConfig } = require('../../config/webpack');

module.exports = getWebpackConfig('maps');
module.exports = getWebpackConfig('maps', 'Maps');
2 changes: 1 addition & 1 deletion packages/plots/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ant-design/plots",
"version": "1.0.2",
"version": "1.0.3",
"description": "G2Plot Statistical chart",
"bugs": {
"url": "https://github.com/ant-design/ant-design-charts/issues"
Expand Down
2 changes: 1 addition & 1 deletion packages/plots/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const { getWebpackConfig } = require('../../config/webpack');

module.exports = getWebpackConfig('plots');
module.exports = getWebpackConfig('plots', 'Plots');

0 comments on commit 7672a9d

Please sign in to comment.