Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API 中webpackChain option中没有publicpath 的选型 #8207

Closed
LiyumingBen opened this issue Dec 5, 2020 · 1 comment
Closed

API 中webpackChain option中没有publicpath 的选型 #8207

LiyumingBen opened this issue Dec 5, 2020 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@LiyumingBen
Copy link

这个特性解决了什么问题?

1静态资源 js、img、css等在不同cdn,thunk包中都会相对路径, 想将其在打包过程中修改为对应cdn路径。

这个 API 长什么样?

  1. taro API sassLoaderOption中支持publicpath 的选型
@taro-bot2 taro-bot2 bot added the enhancement New feature or request label Dec 5, 2020
@Chen-jj
Copy link
Contributor

Chen-jj commented Dec 9, 2020

sassLoaderOption 是 sass-loader 的配置,你想要的是 webpack 配置的 output.publicPath 吧

@Chen-jj Chen-jj added the question Further information is requested label Dec 21, 2020
@Chen-jj Chen-jj closed this as completed Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants