Giter VIP home page Giter VIP logo

Comments (1)

mattkrick avatar mattkrick commented on August 17, 2024

As a personal preference, I like webpack configs to be as big & verbose & easy to read as possible. Back in the day I read every single webpack config on github to arrive at the current setup & the biggest thing I learned from the exercise was that folks who tried to be cute & save a few lines of code had really difficult-to-grok configs (https://github.com/kriasoft/react-starter-kit/blob/master/tools/webpack.config.js). Size is irrelevant since it'll never make it to the client, but comprehension is critical since webpack is freaking complicated. The only benefit is maybe not having to repeat the change in 1 other place, but then again, it could mean you have to refactor something out of the base config & into an environmental config, which means you're at a net loss compared to separate dumb configs.

from meatier.

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.