Giter Site home page Giter Site logo

Comments (10)

jepperaskdk avatar jepperaskdk commented on July 20, 2024 6

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.

acsel31 avatar acsel31 commented on July 20, 2024 3

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.

kevinrjn avatar kevinrjn commented on July 20, 2024

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.

AndreiCN avatar AndreiCN commented on July 20, 2024

@JiProchazka did you find a solution for this in the meantime ?

from adminator-admin-dashboard.

krzysiekpiasecki avatar krzysiekpiasecki commented on July 20, 2024

@JiProchazka Can't reproduce. Still got the problem?

from adminator-admin-dashboard.

anzolin avatar anzolin commented on July 20, 2024

@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.

krzysiekpiasecki avatar krzysiekpiasecki commented on July 20, 2024

@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.

krzysiekpiasecki avatar krzysiekpiasecki commented on July 20, 2024

@AndreiCN @JiProchazka is no more active on this issue. I propose to close this issue.

from adminator-admin-dashboard.

krzysiekpiasecki avatar krzysiekpiasecki commented on July 20, 2024

Close due to inactivity

from adminator-admin-dashboard.

jrichardsz avatar jrichardsz commented on July 20, 2024

If I create a new html inside a folder I get the same error

https://i.ibb.co/mhC8fm8/error.png

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)

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.