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.

Imposible compile 2 scss files with a same name but in different location

See original GitHub issue

laravel-mix version “0.5.16”

It works with javascript but not with scss. Works if I rename app.scss to something like app2.scss

const { mix } = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

mix
  .js('resources/assets/js/app.js', 'public/js')
  .js('Modules/Admin/Resources/assets/js/app.js', 'public/modules/admin/js')

  .extract(['jquery', 'vue', 'lodash'])

  .sass('Modules/Admin/Resources/assets/sass/app.scss', 'public/modules/admin/css')
  .sass('resources/assets/sass/app.scss', 'public/css');

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JeffreyWaycommented, Jan 30, 2017

Thanks!

1reaction
rn1eecommented, Jan 30, 2017

Hi Jeffrey,

I did all you wanted and both files were generated…

screenshot

Read more comments on GitHub >

github_iconTop Results From Across the Web

Imposible compile 2 scss files with a same name but ... - GitHub
Imposible compile 2 scss files with a same name but in different ... It uses a folder-name/file.ext regular expression to find the file....
Read more >
Compile multiple SASS files in multiple directories, into ...
You can compile multiple sass files into multiple css files by specifying multiple source:output separated by a space like this:
Read more >
So in SASS does it mean that I need 2 of the same files in the ...
The command will only create a folder if it doesn't exist in that location. With only one compilable and many partials Sass will...
Read more >
Sass - SuiteCRM Documentation
All you need to know to successfully use SuiteCRM as an End-User, Developer or Administrator, plus Community Guidelines and Technical Blog.
Read more >
An Introduction to PostCSS - SitePoint
CSS preprocessors are popular, but they have some drawbacks. Learn the advantages of ... Then create a _reset.css file in the same folder:...
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