代码拉取完成,页面将自动刷新
var elixir = require('laravel-elixir');
elixir(function (mix) {
// jQuery
mix.copy('node_modules/jquery/dist/jquery.min.js', 'resources/assets/backend/js/');
mix.copy('node_modules/jquery/dist/jquery.min.js', 'resources/assets/frontend/js/');
// Bootstrap
mix.copy('node_modules/bootstrap/dist/js/bootstrap.min.js', 'resources/assets/backend/js/');
mix.copy('node_modules/bootstrap/dist/css/bootstrap.min.css', 'resources/assets/backend/css/');
mix.copy('node_modules/bootstrap/dist/fonts/', 'public/assets/backend/fonts/');
// AdminLTE
mix.copy('node_modules/admin-lte/dist/img/', 'public/assets/backend/images/');
mix.copy('node_modules/admin-lte/dist/js/app.min.js', 'resources/assets/backend/js/adminlte.min.js');
mix.copy('node_modules/admin-lte/dist/css/AdminLTE.min.css', 'resources/assets/backend/css/adminlte.min.css');
mix.copy('node_modules/admin-lte/dist/css/skins/skin-black.min.css', 'resources/assets/backend/css/adminlte-skin.min.css');
mix.copy('node_modules/admin-lte/plugins/*', 'public/assets/backend/plugins/');
mix.copy("node_modules/admin-lte/plugins/select2/select2.min.css", "resources/assets/backend/css/");
mix.copy("node_modules/admin-lte/plugins/select2/select2.full.min.js", "resources/assets/backend/js/");
mix.copy("node_modules/admin-lte/plugins/daterangepicker/moment.min.js", "resources/assets/backend/js/");
mix.copy("node_modules/admin-lte/plugins/daterangepicker/daterangepicker.js", "resources/assets/backend/js/");
mix.copy("node_modules/admin-lte/plugins/daterangepicker/daterangepicker.css", "resources/assets/backend/css/");
// Font-Awesome
mix.copy('node_modules/font-awesome/css/font-awesome.min.css', 'resources/assets/backend/css/');
mix.copy('node_modules/font-awesome/fonts/', 'public/build/assets/backend/fonts/');
mix.copy('node_modules/font-awesome/fonts/', 'public/build/assets/frontend/fonts/');
// Login Background Images
mix.copy('resources/assets/images/background/', 'public/assets/backend/images/background/');
// SweetAlter
mix.copy("node_modules/sweetalert/dist/sweetalert.css", "resources/assets/backend/css");
mix.copy("node_modules/sweetalert/dist/sweetalert.min.js", "resources/assets/backend/js");
// DropzoneJS
mix.copy("node_modules/dropzone/dist/min/basic.min.css", "public/assets/backend/plugins/dropzone/");
mix.copy("node_modules/dropzone/dist/min/dropzone.min.js", "public/assets/backend/plugins/dropzone/");
mix.copy("node_modules/dropzone/dist/min/dropzone.min.css", "public/assets/backend/plugins/dropzone/");
mix.copy("node_modules/dropzone/dist/min/dropzone-amd-module.min.js", "public/assets/backend/plugins/dropzone/");
// Home Page Assets
mix.copy("resources/assets/frontend/*", "public/assets/frontend/");
mix.copy("resources/assets/frontend/fonts/*", "public/build/assets/frontend/css/fonts/");
mix.copy("resources/assets/frontend/img/testimonials/Testimonials.jpg", "public/build/assets/frontend/img/testimonials/");
mix.copy("resources/assets/frontend/plugins/Lightbox/dist/images/*", "public/build/assets/frontend/images/");
mix.copy('node_modules/font-awesome/css/font-awesome.min.css', 'resources/assets/frontend/css/');
mix.copy("node_modules/sweetalert/dist/sweetalert.css", "resources/assets/frontend/css");
mix.copy("node_modules/sweetalert/dist/sweetalert.min.js", "resources/assets/frontend/js");
// 合并前端的CSS样式文件
mix.styles([
'bootstrap-assets/css/bootstrap.min.css',
'plugins/owl-carousel/owl.carousel.css',
'plugins/owl-carousel/owl.theme.css',
'plugins/owl-carousel/owl.transitions.css',
'plugins/Lightbox/dist/css/lightbox.css',
'plugins/Icons/et-line-font/style.css',
'plugins/animate.css/animate.css',
'css/main.css',
'css/sweetalert.css',
'css/font-awesome.min.css'
],
'public/assets/frontend/css/app.min.css',
'resources/assets/frontend/'
);
// 合并后台的CSS样式文件
mix.styles([
'select2.min.css',
'daterangepicker-bs3.css',
'bootstrap.min.css',
'font-awesome.min.css',
'adminlte.min.css',
'adminlte-skin.min.css',
'sweetalert.css',
'common.css'
],
'public/assets/backend/css/app.min.css',
'resources/assets/backend/css'
);
// 合并前端的Javascript脚本文件
mix.scripts([
'js/jquery.min.js',
'bootstrap-assets/js/bootstrap.min.js',
'js/custom.js',
'plugins/owl-carousel/owl.carousel.min.js',
'js/jquery.easing.min.js',
'plugins/countTo/jquery.countTo.js',
'plugins/inview/jquery.inview.min.js',
'plugins/Lightbox/dist/js/lightbox.min.js',
'plugins/WOW/dist/wow.min.js',
'js/sweetalert.min.js'
],
'public/assets/frontend/js/app.min.js',
'resources/assets/frontend'
);
// 合并后台的Javascript脚本文件
mix.scripts([
'jquery.min.js',
'bootstrap.min.js',
'adminlte.min.js',
'select2.full.min.js',
'moment.min.js',
'sweetalert.min.js',
'daterangepicker.js',
'common.js'
],
'public/assets/backend/js/app.min.js',
'resources/assets/backend/js'
);
// 监控文件变动,自动刷新浏览器
mix.browserSync({
files: [
'app/**/*',
'public/**/*',
'resources/views/**/*'
],
port: 5000,
proxy: 'localhost:8000'
});
// 生成版本和缓存清除
mix.version([
'assets/backend/js/app.min.js',
'assets/backend/css/app.min.css',
'assets/frontend/js/app.min.js',
'assets/frontend/css/app.min.css'
]);
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。