Ejemplo n.º 1
0
var mix = require('laravel-mix');

mix.combine([
        'src/js/libraries/bootstrap.min.js',
        'src/js/libraries/bootbox.min.js'
    ], 'build/js/externals/libs.js')
    .js('src/js/externals/popup.js', 'build/js/externals/popup.js')
    .js([
            'src/js/externals/emoticon.js',
            'src/js/externals/shortcut.js',
            'src/js/externals/notification.js',
            'src/js/externals/room.js',
            'src/js/externals/setting.js',
            'src/js/externals/group.js',
        ], 'build/js/externals/pages.js')
    .js('src/js/extensions/contentscript.js', 'build/js/extensions/contentscript.js')
    .js('src/js/extensions/background.js', 'build/js/extensions/background.js')
    .js('src/js/internals/main.js', 'build/js/internals/all.js')
Ejemplo n.º 2
0
    .less('resources/assets/less/mobile.less', 'public/assets/css/mobile.main.css');

// js
mix.js('resources/assets/js/app.js', 'public/assets/js/app.main.js')
    .js('resources/assets/js/console.js', 'public/assets/js/console.main.js')
    .js('resources/assets/js/mobile.js', 'public/assets/js/mobile.main.js')
    .extract([
        'jquery', 'lodash', 'moment', 'axios',
        'vue', 'vue-i18n', 'vuex', 'vue-router',
        'autosize'
    ], 'public/assets/js/vendor');

// app styles
mix.combine([
    /**
     * app vendor styles
     */
    // 'public/bower_components/toastr/toastr.css',
], 'public/assets/css/app.vendor.css')
    .combine([
        /**
         * console vendor styles
         */
        // 'public/bower_components/toastr/toastr.css',
    ], 'public/assets/css/console.vendor.css')
    .combine([
        /**
         * mobile vendor styles
         */
        // 'public/bower_components/toastr/toastr.css',
    ], 'public/assets/css/mobile.vendor.css');
Ejemplo n.º 3
0
 * Copy and build vendor packages
 */

// jQuery
mix.copy('node_modules/jquery/dist/jquery.min.js', 'www/media/js/vendor/jquery.js');

// Bootstrap v2.3.2 release order: bootstrap-transition.js, bootstrap-alert.js, bootstrap-button.js, bootstrap-carousel.js, bootstrap-collapse.js, bootstrap-dropdown.js, bootstrap-modal.js, bootstrap-tooltip.js, bootstrap-popover.js, bootstrap-scrollspy.js, bootstrap-tab.js, bootstrap-typeahead.js, bootstrap-affix.js
// TODO - Just pull the modified version from the CMS?
mix.combine(
    [
        'node_modules/bootstrap-2.3.2/js/bootstrap-transition.js',
        'node_modules/bootstrap-2.3.2/js/bootstrap-collapse.js',
        'node_modules/bootstrap-2.3.2/js/bootstrap-dropdown.js',
        'node_modules/bootstrap-2.3.2/js/bootstrap-modal.js',
        'node_modules/bootstrap-2.3.2/js/bootstrap-tooltip.js',
        'node_modules/bootstrap-2.3.2/js/bootstrap-popover.js',
        'node_modules/bootstrap-2.3.2/js/bootstrap-scrollspy.js',
        'node_modules/bootstrap-2.3.2/js/bootstrap-tab.js',
        'node_modules/bootstrap-2.3.2/js/bootstrap-typeahead.js',
        'node_modules/bootstrap-2.3.2/js/bootstrap-affix.js',
    ],
    'www/media/js/vendor/bootstrap.js'
);

// Blueimp Canvas to Blob
mix.copy('node_modules/blueimp-canvas-to-blob/js/canvas-to-blob.min.js', 'www/media/js/vendor/blueimp-canvas-to-blob.js');

// Blueimp Load Image
mix.combine(
    [
        'node_modules/blueimp-load-image/js/load-image.js',