Laravel混合未定义的错误

时间:2017-12-04 01:42:53

标签: laravel laravel-mix

我尝试使用laravel mix缩小我的来源,这是我的webpack.mix.js文件

let 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.styles([
  'theme/admin/assets/css/bootstrap.css',
  'theme/admin/assets/font-awesome/css/font-awesome.css',
  'theme/admin/assets/css/zabuto_calendar.css',
  'theme/admin/assets/js/gritter/css/jquery.gritter.css',
  'theme/admin/assets/lineicons/style.css',
  'theme/admin/assets/css/style.css',
  'theme/admin/assets/css/style-responsive.css',
  'theme/admin/assets/js/chart-master/Chart.js'
], 'public/css/admin.css');

mix.js([
  'theme/admin/assets/js/jquery.js',
  'theme/admin/assets/js/jquery-1.8.3.min.js',
  'theme/admin/assets/js/bootstrap.min.js',
  'theme/admin/assets/js/jquery.dcjqaccordion.2.7.js',
  'theme/admin/assets/js/jquery.scrollTo.min.js',
  'theme/admin/assets/js/jquery.nicescroll.js',
  'theme/admin/assets/js/jquery.sparkline.js',
  'theme/admin/assets/js/common-scripts.js',
  'theme/admin/assets/js/gritter/js/jquery.gritter.js',
  'theme/admin/assets/js/gritter-conf.js'
], 'public/js/admin.js');

如果我只使用npm run watch上的样式部分它会返回成功,问题出在js文件中,特别是在这部分中'theme/admin/assets/js/bootstrap.min.js',

image

任何想法?

0 个答案:

没有答案