Comments (6)
@eliawk can you detail what the ultimate need is for this change?
from paratii-portal.
@bent0b0x , the use case is as follows. to functino, the portal needs to know the addresses of the contracts on the blockchain. This all passes thorugh a registry contract that contains the address of the other deployed contracts. This registry address is more or less stable in production (currently it is 0x0B101ff870F8BAd6c437C45eCb2964D7e8034593), but will be different for the staging server (not there yet) and will be a new fresh address when testing.
So, thinking about it, we perhaps do not need the webpack.dev.js
variant (since the tests are not running against the webpack'ed code, but against the es8 code directly), but we will need a webpack.prod.js
and (in the near future) a webpack.staging.js
from paratii-portal.
I'm not sure we will need separate webpack configs for this, but rather just regular json config files w/ these kinds of settings. And we could import those config files conditionally based on the NODE_ENV
, into our webpack.config.js
and use the WebpackDefinePlugin
to set them in our code
from paratii-portal.
I'm not sure why that would be better/simpler though than having 2 different files
from paratii-portal.
My reasoning is this: the webpack configs are primarily for defining our build process, and possibly secondarily for injecting variables into our code (at least that is how I view it). To avoid confusion on the build process and to ensure the build processes in different environments does not diverge too much, I would like to keep that all in one file. For things that need to diverge based on env, like what we are talking about here, then separate config files makes sense, but our webpack config can just require
those conditionally.
I’m speaking from some experience here where I worked on a project with a prod webpack config and one for dev, and it made it very easy to add something for dev and forget to do it for prod.
All of that said, willing to look at a PR with this implemented and eat my words later on!
from paratii-portal.
from paratii-portal.
Related Issues (20)
- Need util to send PTI in integration tests HOT 3
- save the vote in local storage
- get real data for the dates (startchallenge, revealenddate, etc)
- implement the "clock" counter HOT 2
- link with paratii-js and db (we now use a mock) [SidebarTCR.js, TCRActions.js
- get the vote from local storage and call the reveal function
- set minDeposit in tcr contract to a decent value (5e18)
- Where to show the sidebar(UserNav) if max-width: 1440px HOT 3
- Rework Portal presentation to host AtB and focus on crypto HOT 6
- Implement categories on the landing page HOT 6
- [VOTE] Name for the portal web app - options (10 AUG) HOT 8
- List of content (~75 videos) for 6 categories on homepage HOT 4
- Change the header of the portal
- Change the copy of the login flow HOT 1
- Implement ''special search result page''
- Small profile fixes
- Change ''Episodes'' for ''Ep.'' on the main showcase of the Lab HOT 2
- Big files (>1gb) are breaking uploads HOT 1
- Add "cancel" feature to ongoing uploads, & "delete" to saved vids
- When there is no docker-compose.yml then there is this nice error message:
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 paratii-portal.