Giter Site home page Giter Site logo

大神,为什么我弄得icon,刚添加文件的时候可以显示,但是清除缓存后就显示不出来了? about vue-multiple-pages HOT 16 CLOSED

plortinus avatar plortinus commented on August 15, 2024
大神,为什么我弄得icon,刚添加文件的时候可以显示,但是清除缓存后就显示不出来了?

from vue-multiple-pages.

Comments (16)

LeifJG avatar LeifJG commented on August 15, 2024

GET http://localhost:8010/fd2711f07151f242a69e5eabb6c1b1b5.ttf
vue.runtime.esm.js?547b:7115 Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools
vue.runtime.esm.js?547b:7125 You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html
index.html:1 GET http://localhost:8010/47980f407ecd3490f023d05b4194de5f.woff

from vue-multiple-pages.

LeifJG avatar LeifJG commented on August 15, 2024

我把字体文件的'cache-loader',注释掉就可以了,但是有没有其他方法解决?

from vue-multiple-pages.

Plortinus avatar Plortinus commented on August 15, 2024

是不是文件太大,超过了url-loader的限制了?

from vue-multiple-pages.

LeifJG avatar LeifJG commented on August 15, 2024

都是22KB啊,我感觉是缓存那边的问题,因为我把缓存文件夹删除了就可以显示了,但是过一会儿清空缓存就又提示找不到文件了。

from vue-multiple-pages.

Plortinus avatar Plortinus commented on August 15, 2024

有可以复现的项目看吗?我这里试了一下没有出现这个问题,我的项目在这issue15

from vue-multiple-pages.

Plortinus avatar Plortinus commented on August 15, 2024

最好提供一下详细一点的复现步骤,我的操作可能和你不一样.

from vue-multiple-pages.

LeifJG avatar LeifJG commented on August 15, 2024

测试项目 刚用github还不太会用啊,这个是我的项目,然后我里面把字体文件的cache-loader注释掉了。。

from vue-multiple-pages.

LeifJG avatar LeifJG commented on August 15, 2024

我看了你的项目,我说的icon是指iconFont之类的icon..

from vue-multiple-pages.

Plortinus avatar Plortinus commented on August 15, 2024

@649579742 我的项目也是iconfont,你看里面的login页面.
你的项目,我启用了cache-loader,然后npm run dev之后查看index页面,然后利用chrome浏览器上方的'清空缓存并硬性重新加载', 页面上的叹号图标还是在的,没有消失.
环境是Mac电脑 Chrome浏览器

from vue-multiple-pages.

LeifJG avatar LeifJG commented on August 15, 2024

这么奇怪,我这启用了cache-loader清空缓存并硬性重新加载就报最上面2楼那个错了,字体文件404。。。不过我用的是Windows7

from vue-multiple-pages.

Plortinus avatar Plortinus commented on August 15, 2024

@649579742 2楼的那个错看不明白,你给控制台截图一下完整的错误吧

from vue-multiple-pages.

LeifJG avatar LeifJG commented on August 15, 2024

image

from vue-multiple-pages.

Plortinus avatar Plortinus commented on August 15, 2024

我用win10系统试了一下,没这个问题,node版本是6.10.1.Mac对应的node版本是7.8.0

from vue-multiple-pages.

LeifJG avatar LeifJG commented on August 15, 2024

我node是6.10.0,难道是版本问题。。。

from vue-multiple-pages.

Plortinus avatar Plortinus commented on August 15, 2024

可以升级一下node版本试试

from vue-multiple-pages.

Plortinus avatar Plortinus commented on August 15, 2024

hold不住cache-loader,生产环境还是慎用的好,我去掉这个cache-loader

from vue-multiple-pages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.