phpvms/webpack.mix.js

99 lines
2.7 KiB
JavaScript
Raw Normal View History

/**
*
*/
2017-12-25 02:10:51 +08:00
'use strict';
2017-12-28 07:20:34 +08:00
const mix = require('laravel-mix');
const webpack = require('webpack');
mix.webpackConfig({
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
})
]
});
/**
* ADMIN REQUIRED FILES
*/
2017-12-17 05:12:44 +08:00
mix.sass('public/assets/admin/vendor/sass/paper-dashboard.scss',
'public/assets/admin/vendor/paper-dashboard.css')
2017-12-28 06:51:56 +08:00
.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',
'node_modules/select2/dist/css/select2.css',
'node_modules/leaflet/dist/leaflet.css',
'node_modules/icheck/skins/flat/orange.css',
'public/assets/admin/vendor/paper-dashboard.css',
], 'public/assets/admin/css/vendor.min.css').version()
2017-12-28 06:51:56 +08:00
.sourceMaps();
mix.scripts([
'node_modules/lodash/lodash.js',
'node_modules/jquery/dist/jquery.js',
'node_modules/popper.js/dist/umd/popper.js',
'node_modules/popper.js/dist/umd/popper-utils.js',
'node_modules/select2/dist/js/select2.js',
'node_modules/leaflet/dist/leaflet.js',
'node_modules/icheck/icheck.js',
'node_modules/pjax/pjax.js',
], 'public/assets/admin/js/vendor.js');
2017-12-25 02:10:51 +08:00
/**
* SYSTEM REQUIRED FILES
*/
2017-12-28 07:20:34 +08:00
mix.autoload({
'jquery': ['jQuery', '$'],
});
2017-12-28 07:20:34 +08:00
2017-12-28 07:24:54 +08:00
mix.scripts([
'node_modules/lodash/lodash.js',
'node_modules/jquery/dist/jquery.js',
'node_modules/bootstrap3/dist/js/bootstrap.js',
'node_modules/popper.js/dist/umd/popper.js',
'node_modules/popper.js/dist/umd/popper-utils.js',
'node_modules/select2/dist/js/select2.js',
'node_modules/leaflet/dist/leaflet.js',
'node_modules/pjax/pjax.js',
'node_modules/Leaflet.Geodesic/Leaflet.Geodesic.js',
'node_modules/leaflet-rotatedmarker/leaflet.rotatedMarker.js',
2017-12-28 07:24:54 +08:00
/*'public/assets/frontend/js/plugins/bootstrap-switch.js',
2017-12-28 07:20:34 +08:00
'public/assets/frontend/js/plugins/nouislider.min.js',
'public/assets/frontend/js/plugins/bootstrap-datepicker.js',
2017-12-28 07:24:54 +08:00
'public/assets/frontend/js/now-ui-kit.js',*/
], 'public/assets/system/js/vendor.js');
mix.styles([
'node_modules/select2/dist/css/select2.css',
'node_modules/leaflet/dist/leaflet.css',
], 'public/assets/system/css/vendor.css')
.options({
processCssUrls: false,
compressed: true
})
.sourceMaps();
/**
* DEFAULT SKIN FRONTEND FILES
*/
2017-12-28 07:20:34 +08:00
2017-12-25 02:10:51 +08:00
mix.sass('public/assets/frontend/sass/now-ui-kit.scss',
'public/assets/frontend/css/now-ui-kit.css')
2017-12-25 02:10:51 +08:00
.options({
processCssUrls: false,
compressed: true
})
.sourceMaps();