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

publicPath和使用historyApi访问二级目录 #498

Closed
torrac12 opened this issue Dec 1, 2017 · 1 comment
Closed

publicPath和使用historyApi访问二级目录 #498

torrac12 opened this issue Dec 1, 2017 · 1 comment

Comments

@torrac12
Copy link

torrac12 commented Dec 1, 2017

我期望 在 .roadhogrc 里面设置publicPath='/', 生成的HTML模板里面 'index.js' 引用的路径是 '/index.js' 但结果是相对路径'index.js'引用

@torrac12 torrac12 closed this as completed Dec 1, 2017
@torrac12 torrac12 reopened this Dec 1, 2017
@torrac12 torrac12 closed this as completed Dec 1, 2017
@torrac12 torrac12 reopened this Dec 1, 2017
@torrac12 torrac12 closed this as completed Dec 1, 2017
@torrac12
Copy link
Author

torrac12 commented Dec 1, 2017

原来用的模板是 public/index.html的模板,而不是webpackHtmlPlugin生成的

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

No branches or pull requests

1 participant