Comments (7)
Hi @dbismut thanks for suggestion. We could do this, why not? Can you send PR for it?
from create-inferno-app.
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.
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.
Yeah, I think devtools must be imported from index.js (entry point) before other stuff.
from create-inferno-app.
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.
Ping @longlho hes good with this stuff.
from create-inferno-app.
As inferno-devtools
has been retired, I think this issue is not valid anymore?
from create-inferno-app.
Related Issues (20)
- cannot use test after fresh install, --watch is not supported without git/hg, please use --watchAll HOT 1
- Create-Inferno-App failing install with Node v.10 due to [email protected] HOT 3
- start inferno-scripts with host flag without using dnsmasq HOT 1
- .env variables not present in process.env HOT 4
- can we specify a custom build path for "inferno-scripts build"?
- make process.env available in sass? HOT 1
- PUBLIC_URL defined on .env is not on process.env
- .babelrc HOT 9
- My function call transpiled to (void, 0) HOT 2
- Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory HOT 5
- What's this code that was injected in index.html on build? HOT 1
- Doesnt install inferno-create-element HOT 1
- How do I use Linaria or Astroturf with this webpack setup? HOT 1
- Pretty far behind the fork of create-react-app HOT 12
- Inferno compat question HOT 3
- Anyone deployed inferno on Google App Engine?
- inferno-dev-utils/formatWebpackMessages support for webpack 5.x
- Test with new versions of Node with CI/CD HOT 1
- Dependencies must be upgraded HOT 10
- create-inferno-app dependency issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-inferno-app.