我通过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')