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

小程序用到的静态资源走CDN 和 防止node_modules/xxxx包被taro再次编译的bug #3508

Merged
merged 7 commits into from
Jul 3, 2019

Conversation

xshua06
Copy link
Contributor

@xshua06 xshua06 commented Jun 21, 2019

新功能:小程序用到的静态资源走CDN
bugfix:防止node_modules/xxxx包被taro再次编译的bug

当配置有中时

{
weapp: {
publicPath: ${publicPath}/${config.projectname},
staticDirectory: 'assets/static'
}
}
生产换打包后静态资源可走CDN

开发环境下,静态资源依然是打包到dist/下
生产环境下,静态资源打包到/assets,可将该目录下文件上CDN

@luckyadam luckyadam merged commit cdd9c81 into NervJS:master Jul 3, 2019
@tourze
Copy link
Contributor

tourze commented Jul 4, 2019

666

@tourze
Copy link
Contributor

tourze commented Jul 4, 2019

这个能够所有资源都走cdn?不单单是小程序

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants