Skip to content

Juniper upgrade - Multi-asset build and static location flexibility - #349

Merged
johnbaldwin merged 2 commits into
masterfrom
john/update-fe-asset-handling
May 27, 2021
Merged

johnbaldwin merged 2 commits into
masterfrom
john/update-fe-asset-handling

Conversation

@johnbaldwin

@johnbaldwin johnbaldwin commented May 26, 2021 •

Copy link
Copy Markdown
Contributor
  • New build script, 'multi-build' added to build multiple asset bundles
  • Now two asset bundles are created
    • One for pre-Juniper with REM_BASE=10
    • Another for Juniper+ with REM_BASE=16
  • 'publicPath' removed from webpack-stats.json file to allow for Webpack
    to specify the static assets URL
  • Which of the two asset bundle is determiend by the Open edX release
    version

NOTE: This does not solve the "need to build assets for deployment" issue. So currently, we're still building an "asset bundle" deadend branch until we automate building assets into the dist bundle to push to PyPI

* New build script, 'multi-build' added to build multiple asset bundles
* Now two asset bundles are created
    * One for pre-Juniper with REM_BASE=10
    * Another for Juniper+ with REM_BASE=16
* 'publicPath' removed from webpack-stats.json file to allow for Webpack
to specify the static assets URL
* Which of the two asset bundle is determiend by the Open edX release
version
@johnbaldwin
johnbaldwin force-pushed the john/update-fe-asset-handling branch from 50abe8b to 8240f89 Compare May 26, 2021 16:58

@grozdanowski grozdanowski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@johnbaldwin

Copy link
Copy Markdown
Contributor Author

Thanks @grozdanowski ! I added another commit that fixes the default build and sets it as REM_BASE 16

@OmarIthawi OmarIthawi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thanks @johnbaldwin!

@johnbaldwin
johnbaldwin merged commit 5b73f2e into master May 27, 2021
@johnbaldwin
johnbaldwin deleted the john/update-fe-asset-handling branch May 27, 2021 12:39
@melvinsoft

Copy link
Copy Markdown
Contributor

@johnbaldwin Thank you for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants