Support the ongoing development of Laravel.io →
posted 10 years ago
Architecture

Can anyone tell why this code generates the all.css file:

elixir(function(mix) {
    mix.copy(
       		'bower_components/semantic-ui/dist/semantic.css',
       		'public/css/vendor/semantic-ui/semantic.css'
       	)
       .copy(
       		'bower_components/semantic-ui/dist/semantic.js',
       		'public/js/vendor/semantic-ui/semantic.js'
       	)
       .copy(
       		'bower_components/jquery/dist/jquery.js',
       		'public/js/vendor/jquery/jquery.js'
       	)
       .stylesIn("public/css");
});

But this code does not:

elixir(function(mix) {
    mix.copy(
       		'bower_components/semantic-ui/dist/semantic.css',
       		'public/css/vendor/semantic-ui/semantic.css'
       	)
       .copy(
       		'bower_components/semantic-ui/dist/semantic.js',
       		'public/js/vendor/semantic-ui/semantic.js'
       	)
       .copy(
       		'bower_components/jquery/dist/jquery.js',
       		'public/js/vendor/jquery/jquery.js'
       	)
       .styles([
       		"css/sfm.css"
       	]);
});
Last updated 3 years ago.
0

What error???

This will assume that the resources/css folder is the base directory.
Last updated 10 years ago.
0

tuyenlaptrinh said:

What error???

This will assume that the resources/css folder is the base directory.

No present error. Only not generate file all.css, like stylesIn generate.

0

Are you sure folder's resources/css exits

0

tuyenlaptrinh said:

Are you sure folder's resources/css exits

Bingo!

After documentation was updated by Jeffreway there 21h ago, I saw that the new folders are resources/css and resources/js.

Thanks!

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

pporto pporto Joined 3 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.