Code Monkey home page Code Monkey logo

Comments (7)

alicoding avatar alicoding commented on August 16, 2024

The problem here is the config being ignored for node_modules

{
test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
exclude: path.resolve(__dirname, "node_modules"),
use: [
{
loader: "url-loader",
options: {
prefix: "font",
limit: 10000,
mimetype: "application/octet-stream"
}
}
]
},

You may have to exclude it for font-awesome only here.

from react-webpack-babel.

LeonardoGentile avatar LeonardoGentile commented on August 16, 2024

This might have been my fault cause I've recently submitted a PR for this 😆
I assumed all the fonts to be installed locally

This is a starter and for sure it can't satisfy everybody's needs, it should be modified for each project, but still probably most fonts are installed via npm so should we change this default? @alicoding what do you think?

from react-webpack-babel.

alicoding avatar alicoding commented on August 16, 2024

@LeonardoGentile hehe no worries I guess we could just remove that exclusion or we could just document this somehow?

from react-webpack-babel.

emhamzahazeen avatar emhamzahazeen commented on August 16, 2024

Being a starter, it should not 'assume' things in my view.

from react-webpack-babel.

LeonardoGentile avatar LeonardoGentile commented on August 16, 2024

@alicoding you just mentioned someone else 😆
@emhamzahazeen without assumption the starter would not work for the majority of people, it would just not work for anybody IMO.

I've checked and the font loaders were excluding the node_packages even before my PR, but honestly I don't know what's the percentage of people loading font from npm vs locals, so fixing it for some people would break things for others, do you see my point @emhamzahazeen ?

from react-webpack-babel.

alicoding avatar alicoding commented on August 16, 2024

Oopsy! So many people in my list and I just assumed the first one :P

from react-webpack-babel.

emhamzahazeen avatar emhamzahazeen commented on August 16, 2024

@LeonardoGentile Maybe have two versions, one commented accordingly with instructions, and current one being the active one?

from react-webpack-babel.

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.