Skip to content

Commit

Permalink
feat: stop trans asset for quickapp
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode authored and luckyadam committed Dec 31, 2019
1 parent 1c2fa60 commit dbc27c5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/taro-mini-runner/src/webpack/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ export const getModule = (appPath: string, {
use: {
urlLoader: getUrlLoader([defaultMediaUrlLoaderOption, {
name: `${staticDirectory}/media/[name].[ext]`,
...mediaUrlLoaderOption
...mediaUrlLoaderOption,
limit: isQuickapp ? false : mediaUrlLoaderOption.limit
}])
}
},
Expand All @@ -334,7 +335,8 @@ export const getModule = (appPath: string, {
use: {
urlLoader: getUrlLoader([defaultFontUrlLoaderOption, {
name: `${staticDirectory}/fonts/[name].[ext]`,
...fontUrlLoaderOption
...fontUrlLoaderOption,
limit: isQuickapp ? false : fontUrlLoaderOption.limit
}])
}
},
Expand All @@ -343,7 +345,8 @@ export const getModule = (appPath: string, {
use: {
urlLoader: getUrlLoader([defaultImageUrlLoaderOption, {
name: `${staticDirectory}/images/[name].[ext]`,
...imageUrlLoaderOption
...imageUrlLoaderOption,
limit: isQuickapp ? false : imageUrlLoaderOption.limit
}])
}
}
Expand Down

0 comments on commit dbc27c5

Please sign in to comment.