css/new-anviz-fonts.css
The
icon shows only one square? What"s the reason? solve it! Thank you!
css/new-anviz-fonts.css
The
icon shows only one square? What"s the reason? solve it! Thank you!
recommends using Ali's iconfont, and using online fonts. No longer care about the path problem, the icon is not complete.
path is wrong, yours is also a relative path, absolute path you want to use the address with http
you should put the font file in the static folder under public, and use url (/ static/.). The font file does not need to be recompiled, the file placed in the public folder will be packaged intact, while the file placed in the asset folder will be compiled by webpack as a module.
finally found two reasons:
path
icon file and style file are placed in the same directory assets/fonts:
@font-face {
font-family: 'icon';
src: url('icon.eot?btu5gk');
src: url('icon.eot?btu5gk-sharpiefix') format('embedded-opentype'),
url('icon.ttf?btu5gk') format('truetype'),
url('icon.woff?btu5gk') format('woff'),
url('icon.svg?btu5gk-sharpicon') format('svg');
font-weight: normal;
font-style: normal;
}
main.js import
:
Previous: The problem of model returning data under ant design prov2.0 no-mock
Next: Does webpack-html-plugin not automatically reference common code extracted by splitChunks?
modify: yesterday I found that it is useless to configure css option in vue-loader, and it is useless to further configure js:babel,eslint after cannot extract css . My definition of useless is that it cannot be run in ie11 I have already configured ...
The login page uses a separate style, so I want to add scoped to the login page to act on the current page, but the effect of html is gone, and small-level styles can be @media screen and (min-width: 1600px) { html { font-size: 100px; } } : ....
< html > < head > < title > test < title > < script src= " https: cdn.jsdelivr.net npm .;>< script> < H1 > div {< H1 > width: 100px; height: 100px; background-color: red; } .v-enter { width: 0 } .v-enter-to { width: 100px } .v-enter-...
vue cancel question vue cancel question ...
weback and vue, develop multiple pc pages using vue-loader refer to Blue Fox s multi-page framework https: github.com bluefox168. the attempt can be built, and there is no problem with the public js. but the public css is not separated, and all ...
For the webpack+vue project, I want to use the "runtime version " of vue, but I also want to use the template feature. The official website says that using vue-loader is fine. Webpack I configured vue-loader, to use the "runtime " version, which will ...
problem description defining the let variable at the top of the script block of the component will report an error, but there is no problem to change it to var, there is no problem with the definition of let in the method, and the same error is report...
1.webpack parses .vue into a js, so how does vue register this js as a component 2. Whether this component is a global component or a local component 3. If it is a local component, how is it injected ...
topic description you can see that the events of carousel are constantly triggered, and often make the panel fake death. Even after the page is destroyed, the event still exists. How to destroy it? ...
directory structure: entry entry is index.js, sibling, App.vue, sibling and components Hello.vue index is written as follows: < div> <div>Vue Analyze Succeed!{{info}}< div> < div> < template> <script> im...
problem description when the project was running, the following error occurred, that is, the cnpm run dev Times was wrong ERROR Failed to compile with 1 errors 17:3...
problem description when the project was running, the following error occurred, that is, the cnpm run dev Times was wrong ERROR Failed to compile with 1 errors 17:3...
problem description when the project was running, the following error occurred, that is, the cnpm run dev Times was wrong ERROR Failed to compile with 1 errors 17:3...
problem description when the project was running, the following error occurred, that is, the cnpm run dev Times was wrong ERROR Failed to compile with 1 errors 17:3...
I call a method afun () to request data in created, and then watch monitors the data returned by afun, and then requests other data , which creates a problem that the interface needs to be requested many times per load. how to limit ...
problem description the css prefix generated by postcss-loader autoprefixer packaging is incomplete, only-ms-. related codes Please paste the code text below (do not replace the code with pictures) webpack.base.config.js rules: [ { ...