Comments (10)
Try updating webpack/rules/fonts.js
to the following. Update outputPath as you wish and it should be reflected in bundle.js.
module.exports = {
test: /\.(eot|svg|ttf|woff|woff2)$/,
exclude : /(node_modules)/,
loader: 'file-loader',
options: {
outputPath: 'assets/fonts/',
},
};
from adminator-admin-dashboard.
Find in result js files (vendor.js and bundle.js) next code:
t.exports=a.p+"a1ecc3b826d01251edddf29c3e4e1e97.woff"
and replace it as you need (delete a.p and write your path)
In my case a.p=="/" and i have no symbols.
Maybe, this option can configured in building files, but i don't known
Sorry, i not speak english.
Oh, in file webpack/config.js:
publicPath: 'your path to files', default is '/'
from adminator-admin-dashboard.
Same problem. I'm trying to integrate this template into an angular project but fonts having to be in the root folder is a big issue. Someone here to help us please ? Thanks
from adminator-admin-dashboard.
@JiProchazka did you find a solution for this in the meantime ?
from adminator-admin-dashboard.
@JiProchazka Can't reproduce. Still got the problem?
from adminator-admin-dashboard.
@JiProchazka what happened to you happened to me and if you do as @acsel31 said, you will succeed. If you want, I can pass the changed files to you.
from adminator-admin-dashboard.
@AndreiCN Did you reproduce this defect? See also the latest deploy http://adminator.surge.sh/index.html. No problem with fonts.
from adminator-admin-dashboard.
@AndreiCN @JiProchazka is no more active on this issue. I propose to close this issue.
from adminator-admin-dashboard.
Close due to inactivity
from adminator-admin-dashboard.
If I create a new html inside a folder I get the same error
Inspecting , I see that font is loaded from:
http://localhost:8080/settings/a1ecc3b826d01251edddf29c3e4e1e97.woff
Due to my url http://localhost:8080/settings/page
I fixed it, following the @acsel31 workaround:
replace in bundle.js
a.p+"a1ecc3b826d01251edddf29c3e4e1e97.woff"
to
"/a1ecc3b826d01251edddf29c3e4e1e97.woff"
Is the another more elegant way to fix this?
from adminator-admin-dashboard.
Related Issues (20)
- top right corner's dropdown click event doesn't work if jquery is enabled in HTML template HOT 2
- Bootstrap 5 HOT 1
- Original author attribution HOT 2
- I need just light build version of the Menu HOT 1
- Webpack compilation issue HOT 2
- Charts added using charts.js are not animating on page load (or at any other time). HOT 1
- Uncaught TypeError: can't access property "__k", u is null HOT 1
- Unable to resolve dependencies during npm install HOT 1
- This is useless. Simple web app but too complicated to install. HOT 2
- How to add new js file
- Unable to install due to package dependencies HOT 1
- Not able to plugin to Yii2 Framworks HOT 2
- Is this still maintained? HOT 3
- Bug sidebar menu HOT 2
- Why does it need Python? HOT 3
- Need HTML version HOT 1
- Display code in quick chat
- Setup main.js for project HOT 2
- New html page has no styling HOT 2
- Change background colour HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adminator-admin-dashboard.