71 lines
2.3 KiB
JavaScript
71 lines
2.3 KiB
JavaScript
'use strict';
|
|
|
|
const mix = require('laravel-mix');
|
|
const webpack = require('webpack');
|
|
|
|
mix.webpackConfig({
|
|
plugins: [
|
|
new webpack.ProvidePlugin({
|
|
$: "jquery",
|
|
jQuery: "jquery"
|
|
})
|
|
]
|
|
});
|
|
|
|
mix.sass('public/assets/admin/vendor/sass/paper-dashboard.scss',
|
|
'public/assets/admin/vendor/paper-dashboard.css')
|
|
.sourceMaps();
|
|
|
|
mix.styles([
|
|
'public/assets/admin/vendor/bootstrap.css',
|
|
'public/assets/admin/vendor/bootstrap-editable.css',
|
|
'public/assets/admin/vendor/animate.css',
|
|
'public/assets/admin/vendor/pe-icon-7-stroke.css',
|
|
'public/assets/admin/vendor/themify-icons.css',
|
|
'public/assets/admin/vendor/font-awesome.css',
|
|
'public/assets/admin/vendor/leaflet.css',
|
|
'public/assets/admin/vendor/paper-dashboard.css',
|
|
'public/assets/vendor/select2/dist/css/select2.css',
|
|
'public/assets/vendor/icheck/skins/flat/orange.css'
|
|
], 'public/assets/admin/css/vendor.min.css').version()
|
|
.sourceMaps();
|
|
/*.js([
|
|
'public/js/admin/bootstrap.min.js',
|
|
'public/js/admin/admin.js'
|
|
], 'public/assets/admin/js/admin.js')
|
|
.sourceMaps();*/
|
|
|
|
/*mix.webpackConfig({
|
|
resolve: {
|
|
alias: {
|
|
jquery: "public/assets/vendor/jquery/dist/jquery.js"
|
|
}
|
|
}
|
|
});*/
|
|
mix.autoload({
|
|
'jquery': ['jQuery', '$'],
|
|
})
|
|
|
|
mix.js([
|
|
/*'public/assets/vendor/lodash/dist/lodash.js',
|
|
'public/assets/vendor/jquery/dist/jquery.js',
|
|
'public/assets/vendor/bootstrap/bootstrap.min.js',
|
|
'public/assets/frontend/js/plugins/bootstrap-switch.js',
|
|
'public/assets/frontend/js/plugins/nouislider.min.js',
|
|
'public/assets/frontend/js/plugins/bootstrap-datepicker.js',
|
|
'public/assets/frontend/js/now-ui-kit.js',
|
|
'public/assets/vendor/select2/dist/js/select2.js',*/
|
|
'public/assets/vendor/leaflet/dist/leaflet.js',
|
|
'public/assets/vendor/leaflet-plugins/leaflet.geodesic.js',
|
|
'public/assets/vendor/leaflet-plugins/leaflet.rotatedMarker.js',
|
|
'public/assets/vendor/leaflet-ajax/dist/leaflet.ajax.min.js',
|
|
], 'public/assets/system/js/system-deps.js');
|
|
|
|
mix.sass('public/assets/frontend/sass/now-ui-kit.scss',
|
|
'public/assets/frontend/css/now-ui-kit.css')
|
|
.options({
|
|
processCssUrls: false,
|
|
compressed: true
|
|
})
|
|
.sourceMaps();
|