1
0
mirror of https://github.com/pacoorozco/ssham.git synced 2025-04-19 02:04:20 +03:00
ssham/webpack.mix.js
pacoorozco a633629986 Add DualListBox jQuery dependency
Signed-off-by: pacoorozco <paco@pacoorozco.info>
2021-05-28 14:33:39 +02:00

46 lines
2.0 KiB
JavaScript
Vendored

/*
* SSH Access Manager - SSH keys management solution.
*
* Copyright (c) 2017 - 2021 by Paco Orozco <paco@pacoorozco.info>
*
* This file is part of some open source application.
*
* Licensed under GNU General Public License 3.0.
* Some rights reserved. See LICENSE, AUTHORS.
*
* @author Paco Orozco <paco@pacoorozco.info>
* @copyright 2017 - 2021 Paco Orozco
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
* @link https://github.com/pacoorozco/ssham
*/
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel applications. By default, we are compiling the CSS
| file for the application as well as bundling up all the JS files.
|
*/
mix.copyDirectory('node_modules/clipboard/dist', 'public/vendor/clipboard');
mix.copyDirectory('node_modules/admin-lte/dist', 'public/vendor/AdminLTE');
const adminLTEPlugins = {
'node_modules/admin-lte/plugins/fontawesome-free': 'public/vendor/AdminLTE/plugins/fontawesome-free',
'node_modules/admin-lte/plugins/jquery': 'public/vendor/AdminLTE/plugins/jquery',
'node_modules/admin-lte/plugins/bootstrap': 'public/vendor/AdminLTE/plugins/bootstrap',
'node_modules/admin-lte/plugins/datatables-bs4': 'public/vendor/AdminLTE/plugins/datatables-bs4',
'node_modules/admin-lte/plugins/datatables': 'public/vendor/AdminLTE/plugins/datatables',
'node_modules/admin-lte/plugins/select2': 'public/vendor/AdminLTE/plugins/select2',
'node_modules/admin-lte/plugins/icheck-bootstrap': 'public/vendor/AdminLTE/plugins/icheck-bootstrap',
'node_modules/admin-lte/plugins/bootstrap4-duallistbox': 'public/vendor/AdminLTE/plugins/bootstrap4-duallistbox',
};
for (let directory in adminLTEPlugins) {
mix.copyDirectory(directory, adminLTEPlugins[directory]);
}