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.

scss() always publishes to public even though other path specified

See original GitHub issue

So in the docs, sass is like mix.sass('resources/assets/sass/app.scss', 'public/css');

I changed public/css to resources/build/css. The css file ends up in public/resources/build/css/app.css. I would expect it to go to resources/build/css/app.css instead.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
JeffreyWaycommented, Mar 31, 2017

When you add versioning, it no longer creates resources/build/css/app.css. It creates something like resources/build/css/app.13241212512.css. So compensate for that by using a star.

mix.sass('resources/assets/sass/app.scss', 'build/css')
    .styles([
        'public/build/css/app.*.css',
        'resources/semantic/dist/semantic.css'
    ], 'public/css/all.css');
1reaction
JeffreyWaycommented, Mar 31, 2017

It’s assumed that your Sass should compile directly to the public directory. You can’t change that right now.

Also, if public path is already public why would the argument public/css not go to public/public/css?

“public” in your output path is optional. So if you include it, we strip it off to avoid confusion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't use relative paths in url() in scss files #12797 - GitHub
Globally I'd recommand to never use absolute paths in url() as it is pure CSS and is always relative to the index.html file...
Read more >
Introducing Sass Modules - CSS-Tricks
Sass just launched a major new feature you might recognize from other languages: a module system. This is a big step forward for...
Read more >
relative path to CSS file [closed] - Stack Overflow
How do I specify that the css directory is at the root of the Project folder? My project folder contains: build css dist...
Read more >
The New SASS Module System: Out with @import, In with @use
The new @use rule is the replacement for @import which allows other stylesheets to use its variables, functions, and mixins. What makes the...
Read more >
Sass: @use
Members (variables, functions, and mixins) loaded with @use are only visible in the stylesheet that loads them. Other stylesheets will need to write...
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