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.

is there an example about how to integrate scss on build.config.ts?

Issue Analytics

  • State:open
  • Created 10 months ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dwightjackcommented, Nov 29, 2022

I see. I think there isn’t a way to achieve your goal with unbuild alone. Maybe you could use it with another tool to copy the files or use unbuild programmatically in a custom node script with something like cpy. For example:

// build.mjs
import { build as unbuild} from 'unbuild';
import cpy from 'cpy';

// build with unbuild
// '.' is the folder where you run the command
// unbuild reads the `unbuild.config.ts` file in that folder
await unbuild('.', false)

// copy files as-is
await cpy([ /* patterns here */])

and then run it from the root of your project

node ./build.mjs
Read more comments on GitHub >

github_iconTop Results From Across the Web

Sass: Syntactically Awesome Style Sheets
Sass is the most mature, stable, and powerful professional grade CSS ... Sass has been actively supported for about 16 years by its...
Read more >
CSS, SCSS, and Less support in Visual Studio Code
Find out how Visual Studio Code can support your CSS, SCSS and Less development. ... Visual Studio Code has built-in support for editing...
Read more >
Sass Introduction - W3Schools
Why Use Sass? Stylesheets are getting larger, more complex, and harder to maintain. This is where a CSS pre-processor can help. Sass lets...
Read more >
The definitive guide to SCSS - LogRocket Blog
Unfortunately, the features of SCSS have yet to be introduced in the CSS specs and, therefore, are not supported by browsers.
Read more >
supports - CSS: Cascading Style Sheets - MDN Web Docs
The @supports CSS at-rule lets you specify CSS declarations that depend on a browser's support for CSS features. Using this at-rule 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