question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proposal: Add ability to use preprocessor in assets folder

See original GitHub issue

We 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:open
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nickreesecommented, Jun 6, 2021

@kiuKisas For scss here is how we’re handling it:

// Layout.svelte
<style lang="scss" global>
  @import '../styles/style.scss';
</style>

The next release of Elder.js will properly rebase images.

Then make sure you’ve got whatever dep Svelte Preprocess needs installed.

0reactions
nickreesecommented, May 16, 2021

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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found