Laravel Webpack - 从app文件夹混合文件

时间:2017-09-12 19:17:39

标签: laravel webpack

我正在尝试将webpack与位于Project/app/Dashboard/Resources/scss/main.scssProject/app/Dashboard/Resources/js/main.js的文件夹中的文件一起使用,但是我收到了错误。

我试过了:

mix.js('app/Dashboard/Resources/js/main.js', 'public/js/dashboard.js')
   .sass('app/Dashboard/Resources/scss/main.scss', 'public/css/dashboard.css');

-

mix.js('app/Dashboard/Resources/js/main.js', 'public/js')
   .sass('app/Dashboard/Resources/scss/main.scss', 'public/css');

-

mix.script('app/Dashboard/Resources/js/main.js', 'public/js')
   .sass('app/Dashboard/Resources/scss/main.scss', 'public/css');

-

mix.sass('app/Dashboard/Resources/scss/main.scss', 'public/css');

-

mix.sass('app/Dashboard/Resources/scss/main.scss', 'public/css/dashboard.css');

1 个答案:

答案 0 :(得分:0)

所以......是的......这很尴尬......在其中一个.scss文件中,我有一个丢失图像的链接。检查所有网址,它们应该存在。