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

fis 打包后的文件是/,要开服务才能正常,为什么不用./呢 #990

Open
xcsweb opened this issue Sep 30, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@xcsweb
Copy link

commented Sep 30, 2016

fis 打包后的文件是/,要开服务才能正常,为什么不用./呢,打包的原因是什么

@damoclesX

This comment has been minimized.

Copy link

commented Oct 25, 2016

用绝对路径只是不方便开发而已,正式上线,大多数项目的静态文件都要放cdn。这时配置里面加domain很方便。用相对路径反而不方便。
ps:不用开服务也行哦,配置里面url前面加**_.**_也行,最后打包出来就是相对路径

fis.match('**', {
  release: '/public/$0',
  url: '.$0'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.