Coder Social home page Coder Social logo

inferno-devtools about create-inferno-app HOT 7 CLOSED

infernojs avatar infernojs commented on July 23, 2024 1
inferno-devtools

from create-inferno-app.

Comments (7)

Havunen avatar Havunen commented on July 23, 2024

Hi @dbismut thanks for suggestion. We could do this, why not? Can you send PR for it?

from create-inferno-app.

dbismut avatar dbismut commented on July 23, 2024

Of course I can try, but I'm no pro developer and not sure where to start. Is looking at the webpack.config.dev.js a good idea? Can I require and execute inferno-devtools from there? Thanks for your help ;)

from create-inferno-app.

dbismut avatar dbismut commented on July 23, 2024

Hi @Havunen, after trying further, I tried to modify the entry from webpack.config.dev.js with the following:

modules.export = {
//...
  entry: [
    //...
    require.resolve('inferno-devtools'),
    paths.appIndexJs
  ]
//...
}

I know that inferno-devtools is indeed executed, but for some reason the React extension on Chrome doesn't load. What's weird is that if I copy the distribution code of the inferno-devtools npm package into a devtools.js file that I put next to the appIndexJs file, and then requiring that file in the entry point instead of the npm package, everything runs fine. Not sure what happens there 🙃

from create-inferno-app.

Havunen avatar Havunen commented on July 23, 2024

Yeah, I think devtools must be imported from index.js (entry point) before other stuff.

from create-inferno-app.

dbismut avatar dbismut commented on July 23, 2024

Well I don't understand why this works 🤕

modules.export = {
//...
  entry: [
    //...
   '/Users/david/repos/create-inferno-app/packages/inferno-scripts/template/src/devtools.js',
    paths.appIndexJs
  ]
//...
}

and this doesn't:

modules.export = {
//...
  entry: [
    //...
   '/Users/david/repos/create-inferno-app/node_modules/inferno-devtools/dist/inferno-devtools.js',
    paths.appIndexJs
  ]
//...
}

(this is just a test obviously..., and devtools.js has the same code as inferno-devtools.js)

from create-inferno-app.

Havunen avatar Havunen commented on July 23, 2024

Ping @longlho hes good with this stuff.

from create-inferno-app.

farooqkz avatar farooqkz commented on July 23, 2024

As inferno-devtools has been retired, I think this issue is not valid anymore?

from create-inferno-app.

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.