Upgrade build tools for frontend assets #1890
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgrade from parcel 1 to parcel 2
Parcel 2 includes a new version of sass, which has some deprecated functions, use
to upgrade this syntax.
We had
"node": "^11.11.0",set in our requirements file, which seemed to cause node to run in an "backwards compatible" version which we didn't want. This was causing all sorts of errors during install and runing.Parcel 2 can't just copy files that aren't entrypoints, so we can't use our current build file which uses parcel to just copy some static files. Either look at a plugin like https://github.com/elwin013/parcel-reporter-static-files-copy or see if we can use django collectstatic to do this.
We have some outstanding issues with the specific version of bootstrap we're using, specifically our use of the
make-container-max-widths()andmake-grid-columns()mixins, which have been removed in newer versions. Need to work out what's going on here.Many deprecation warnings still that should be fixed, for example run
to see them