Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
May 27, 2021

Conversation

johnbaldwin
Copy link
Contributor

@johnbaldwin johnbaldwin commented May 26, 2021

  • 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
Copy link
Contributor

@grozdanowski grozdanowski left a comment

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
Contributor Author

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

Copy link
Contributor

@OmarIthawi OmarIthawi left a comment

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
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