Proposal: Add ability to use preprocessor in assets folder
See original GitHub issueWe currently can use preprocessor (sass and typescript) in our svelte component but this doesn’t apply to the assets
folder.
It could be nice to add this ability, probably a modification in copyAssetsToPublic
, by checking the file extension and apply the corresponding preprocess.
If it’s done, it could be nice to add some options to elder.config, in order to enable/disable this feature and to include/exclude some files; if we need the raw file in public
for whatever reason.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Preprocessor directive for package - Unity Forum
Hi, I am trying to use conditional compilation with #if for a package installed via the package manager, specifically, the built-in...
Read more >Support for preprocessors · Issue #16 · gohugoio/hugo - GitHub
I will run hugo server --watch and my default gulp task, which watched the /src directory for changes, processes assets and writes the...
Read more >Load css file from assets using stylePreprocessorOptions
I have created a folder for CSS files inside ...
Read more >The Asset Pipeline - Ruby on Rails Guides
When asset pipelining is enabled, this file is preprocessed and placed in the public/assets directory for serving by either the Rails app or...
Read more >Applying default presets to Assets by folder - Unity - Manual
The following script applies a Preset based on the folder that you add an Asset to. This script chooses the Preset that is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kiuKisas For
scss
here is how we’re handling it:The next release of Elder.js will properly rebase images.
Then make sure you’ve got whatever dep Svelte Preprocess needs installed.
@kiuKisas makes sense but point of clarity. We give users complete control to add their own rollup definitions due to the way Elder.js is configured. They just need to add it before or after the Elder.js Rollup in their rollup config.