Support bundling url references in CSS files with hashed filenames
Add test cases
Update Styles and Assets docs
TODO
[x] inline <style> scratch dir assets handling and test case
[x] basePath support
[x] bundle / hash filenames
[x] docs
[x] clean up console logs / refactoring
Questions
[x] Is our resolution algorithm too naive to map back url references to assuming the root of the user's workspace when dealing with relative paths, e.g. ../? - I think it's fine for now, if it breaks later on a particular use case, we can improve it then with a clear reproduction
Related Issue
resolves #1199
Summary of Changes
url
references in CSS files with hashed filenamesTODO
<style>
scratch dir assets handling and test casebasePath
supportQuestions
url
references to assuming the root of the user's workspace when dealing with relative paths, e.g.../
? - I think it's fine for now, if it breaks later on a particular use case, we can improve it then with a clear reproductionwith { type: 'css' }
- tracking in https://github.com/ProjectEvergreen/greenwood/issues/1227