Giter VIP home page Giter VIP logo

Comments (2)

dvdzkwsk avatar dvdzkwsk commented on March 28, 2024

Hey, it's super easy. As far as webpack goes, literally all you need to do is remove the server entry point in ~/webpack.config.js. That file can now just read:

module.exports = exports = [
  require('./src/entry-points/client')
];

Webpack will now only ever bundle your client application. If you want to remove all the extra stuff that's no longer needed in the project, you can delete these folders/files:

  • ~/build/webpack/server
  • ~/server
  • ~/src/entry-points/server.js

You may have to tweak the npm scripts in package.json and Procfile if you plan to use any that touched the server (e.g. npm run deploy), just to remove any remaining references to the server, but all of that should be pretty straightforward. Using npm run dev and npm run compile will continue to function without any additional work. And then pretty much all that's left is to remove the Koa-related dependencies (not necessary, but would cut down on your install size).

But yeah, that's pretty much it. The server stuff is all pretty well isolated and can just be ignored for the most part, even without significant changes to the project.

from react-redux-starter-kit.

dvdzkwsk avatar dvdzkwsk commented on March 28, 2024

Closing this since there's now a branch for this.

from react-redux-starter-kit.

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.