openmove / odh-mentor-otp

https://mobility.meran.eu
1 stars 3 forks source link

build scss styles path by config #150

Closed stefanocudini closed 1 year ago

stefanocudini commented 2 years ago

obbiettivo e' che dobbiamo cercare di selezione scss da includere inwebpack da una configurazione di ambiente. dal file config.yml oppure da una variabile di ambiente

https://github.com/openmove/odh-mentor-otp/blob/master/journey/src/main.js#L24

stefanocudini commented 2 years ago

possible solution: https://stackoverflow.com/questions/59086681/sass-conditional-imports-based-on-env-variables-using-webpack-to-use-different @RajaOpenMove

stefanocudini commented 2 years ago

https://github.com/openmove/atlas-react/blob/e851b4ed39de1cc40084987ccc354cf765c8cdec/src/App.js#L50

RajaOpenMove commented 2 years ago

https://shipshape.io/blog/wait-for-page-load-in-react/

i think this could do something, i will try it

stefanocudini commented 1 year ago

TODO REFACT

stefanocudini commented 1 year ago

PATCH here: https://github.com/openmove/odh-mentor-otp/blob/dev/journey/src/app.js#L71

stefanocudini commented 1 year ago

patch solved in fornace-ui