From 7e6cc949ea4f2db340fb856591ed36bee17927ca Mon Sep 17 00:00:00 2001 From: littly <544028951@qq.com> Date: Tue, 29 Jan 2019 14:33:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(webpack-runner):=20h5=E7=AB=AF=E6=94=AF?= =?UTF-8?q?=E6=8C=81main:h5=20mainfield?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-webpack-runner/src/config/base.conf.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/taro-webpack-runner/src/config/base.conf.ts b/packages/taro-webpack-runner/src/config/base.conf.ts index 0967403973aa..b16da4986e7b 100644 --- a/packages/taro-webpack-runner/src/config/base.conf.ts +++ b/packages/taro-webpack-runner/src/config/base.conf.ts @@ -45,7 +45,7 @@ export default () => { }, resolve: { extensions: ['.js', '.jsx', '.ts', '.tsx'], - mainFields: ['main', 'module'], + mainFields: ['main:h5', 'main', 'module'], symlinks: true, modules: [ path.join(appPath, 'node_modules'),