Skip to content

Commit

Permalink
fix(webpack-runner): 修复dev模式下webpackChain配置失效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Littly committed Dec 12, 2018
1 parent b7c6b58 commit b5afa70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro-webpack-runner/src/index.ts
Expand Up @@ -16,7 +16,7 @@ import { appPath, addLeadingSlash, addTrailingSlash, recursiveMerge } from './ut
import { bindDevLogger, bindProdLogger, bindDllLogger, printBuildError } from './util/logHelper'
import { BuildConfig } from './util/types'

const customizeChain = (chain, customizeFunc) => {
const customizeChain = (chain, customizeFunc: Function) => {
if (customizeFunc instanceof Function) {
customizeFunc(chain, webpack)
}
Expand Down Expand Up @@ -87,7 +87,7 @@ const buildDev = async (config: BuildConfig): Promise<any> => {
const webpackChain = devConf(config)
let webpackConfig

customizeChain(webpackChain, config)
customizeChain(webpackChain, config.webpackChain)

webpackConfig = webpackChain.toConfig()
if (config.webpack) {
Expand Down

0 comments on commit b5afa70

Please sign in to comment.