From 79a77032a2d6500f4498f060a6c190e59efb5609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=84=B6=E5=88=99?= Date: Wed, 6 Jun 2018 10:48:25 +0800 Subject: [PATCH] init: fix pub error --- index.js | 2 ++ package.json | 2 +- webpack.config.js | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 index.js create mode 100644 webpack.config.js diff --git a/index.js b/index.js new file mode 100644 index 000000000..6831725fd --- /dev/null +++ b/index.js @@ -0,0 +1,2 @@ +// antd-tools 只是为 web 项目构建、并生成 dist 目录,需要根目录下的 index.js 和 webpack.config.js +// 但 RN 项目不需要,此处放个空文件 来利用 antd-tools 提供的 babel编译 / 打tag 等构建功能 diff --git a/package.json b/package.json index 4e1f05baa..ed566146e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "antd-mobile-rn", - "version": "2.2.0-beta.0", + "version": "2.2.0-beta.1", "description": "基于蚂蚁金服移动设计规范的 React Native 组件库", "keywords": [ "ant", diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 000000000..0c50f2cd8 --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,4 @@ +const getWebpackConfig = require('antd-tools/lib/getWebpackConfig'); +const webpackConfig = getWebpackConfig(false); + +module.exports = webpackConfig;