为什么通过laravel-mix编译的资产不能正确显示视图?

时间:2017-05-12 00:53:54

标签: laravel laravel-mix

我通过Laravel-mix正确编译了所有资源,并且只引用了一个编译过的文件,但是当我让它显示时,它没有正确显示。使用laravel-mix:

没有它:

  

webpack.mix.js

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.combine(['./resources/assets/lib/dashboard/vendors/bower_components/jasny-bootstrap/dist/css/jasny-bootstrap.min.css',
    './resources/assets/lib/dashboard/dist/css/style.css',
    './resources/assets/lib/dashboard/vendors/bower_components/dropify/dist/css/dropify.min.css'
    ],'./public/dist/css/auth.css')


 mix.combine(['./resources/assets/lib/dashboard/vendors/bower_components/jquery/dist/jquery.min.js',
    './resources/assets/lib/dashboard/vendors/bower_components/bootstrap/dist/js/bootstrap.min.js',
    './resources/assets/lib/dashboard/vendors/bower_components/jasny-bootstrap/dist/js/jasny-bootstrap.min.js',
    './resources/assets/lib/dashboard/dist/js/jquery.slimscroll.js',
    './resources/assets/lib/dashboard/dist/js/dropdown-bootstrap-extended.js',  
    './resources/assets/lib/dashboard/dist/js/init.js',
    ],'./public/dist/js/auth.js')

0 个答案:

没有答案