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.

Unprocessed scss file gets copied over to dist during build

See original GitHub issue

I have local font definitions imported from style/fonts.scss in style/main.scss.

$ tree public
public
├── app.js
├── assets
│   └── fonts
│       ├── lato-v17-latin-ext_latin-italic.woff
│       ├── lato-v17-latin-ext_latin-italic.woff2
│       ├── lato-v17-latin-ext_latin-regular.woff
│       └── lato-v17-latin-ext_latin-regular.woff2
├── index.html
├── index.js
└── style
    ├── fonts.scss
    └── main.scss

Build properly builds css and puts content into single minified file, but leaves unprocessed style/fonts.scss in dist:

$ tree dist
dist
├── assets
│   ├── fonts
│   │   ├── lato-v17-latin-ext_latin-italic.woff
│   │   ├── lato-v17-latin-ext_latin-italic.woff2
│   │   ├── lato-v17-latin-ext_latin-regular.woff
│   │   └── lato-v17-latin-ext_latin-regular.woff2
│   └── main.e75a073a.css
├── chunks
│   └── prerender.8ab96da0.js
├── index.13d2992f.js
├── index.html
└── style
    └── fonts.scss

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zgodacommented, Feb 22, 2021

Apart of https://github.com/preactjs/wmr/issues/291 evetything seems to work fine. 😉

0reactions
rschristiancommented, Feb 22, 2021

@zgoda So just a leftover file then? Functionally everything is working as you’d expect?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to copy static files to build directory with Webpack?
gave up on file loader after several failed attempts to get it to do a very simple command. your plugin worked first time....
Read more >
Can't use relative paths in url() in scss files #12797 - GitHub
I would like to be able to use the relative file path in the scss file ... so that the sprite is copied,...
Read more >
css-loader | webpack - JS.ORG
Enable CSS modules for files based on the filename satisfying your regex check. webpack.config.js module.exports = { module: { rules: ...
Read more >
Comparing the New Generation of Build Tools - CSS-Tricks
Hugh Haworth on Apr 8, 2021 (Updated on Jan 5, 2022 ) ... Then, I used the following command to compile the app...
Read more >
Asset compilation - Advanced use - Ember CLI Guides
When working on an Ember app, sometimes you may want to customize how ... that allows you to enter your non-prefixed CSS and...
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