Giter VIP home page Giter VIP logo

Comments (6)

MrEfrem avatar MrEfrem commented on March 29, 2024

Change devtool to 'source-map' in webpack config.
'inline-source-map' can is necessary in the development mode though I don't see a difference since debugging both in ff and in chrome works with 'source-map', but in production precisely there shall be 'source-map'.

from react-redux-starter-kit.

dvdzkwsk avatar dvdzkwsk commented on March 29, 2024

I'll have to check out why the production vendor bundle is larger than development, but the bundle itself will be pretty hefty, since it includes all of these:

[
  'history',
  'immutable',
  'react',
  'react-redux',
  'react-router',
  'redux',
  'redux-devtools',
  'redux-devtools/lib/react'
]

As well as babel-runtime, which I believe isn't unsubstantial. Immutable could be pulled out if you're not using it, and I'd like to remove redux-devtools but can't (to my knowledge) because of a naming conflict with redux-devtools/lib/react and react.

Edit: Thanks for pointing that out @MrEfrem, I should fix that.

from react-redux-starter-kit.

gaearon avatar gaearon commented on March 29, 2024

I'd like to remove redux-devtools but can't (to my knowledge) because of a naming conflict with redux-devtools/lib/react and react.

You can help us by separating LogMonitor into a separate project.
Then there'll be no redux-devtools/lib/react. 😉

from react-redux-starter-kit.

dvdzkwsk avatar dvdzkwsk commented on March 29, 2024

@gaearon haha, now I can't decline. I'll try to get to it sometime next week :).

from react-redux-starter-kit.

smontlouis avatar smontlouis commented on March 29, 2024

@MrEfrem 309ko ! Awesome ! In fact it was inline sourcemap :). Separate sourcemap is 2.7 Mo 👍 . Thank you !

from react-redux-starter-kit.

dvdzkwsk avatar dvdzkwsk commented on March 29, 2024

@bulby97 Saw you post this just as I updated the master branch to use regular source-map. Thanks again to @MrEfrem. Closing this for now then.

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.