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

css img path error #366

Closed
ShootToThrill opened this issue Feb 22, 2017 · 1 comment
Closed

css img path error #366

ShootToThrill opened this issue Feb 22, 2017 · 1 comment

Comments

@ShootToThrill
Copy link

my site url like http://192.168.10.13:8000/dist/
so i can not push file in root path

after npm run build

all js css 404 error,like

http://192.168.10.13:8000/static/js/manifest.6c9993f93b3d01905b03.js Failed to load resource: the server responded with a status of 404 (Not Found)

in index.html is like
<script type=text/javascript src=/static/js/manifest.6c9993f93b3d01905b03.js></script>

if i change config/index.js assetsPublicPath:'/'=>assetsPublicPath:''

js and css no 404 error

but i use an img in .vue like .hello{ width: 200px; height: 200px; background: url(../assets/logo.png) 0 0 no-repeat; }

so the logo.png 404 because after build the css is like
url(static/img/logo.d19a753.png)

the error is like http://192.168.10.13:8000/dist/static/css/static/img/logo.d19a753.png Failed to load resource: the server responded with a status of 404 (Not Found)

so how i fix this ?

@posva
Copy link
Member

posva commented Feb 22, 2017

Hello!
Please, open the issue on the relevant template repo (I think you're using the webpack one) and provide some steps to reproduce the problem.
Thanks!

Also, make sure to read our Contributing Guide before opening it. Issues are for bug reports and feature requests only.

We encourage you to ask questions on the forum , Stack Overflow or on gitter and are happy to help you out there.

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

2 participants