How to use the laravel-mix.mix.js function in laravel-mix

To help you get started, we’ve selected a few laravel-mix examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MaxKorlaar / Pxl / webpack.mix.js View on Github external
|
 */
// npm run dev

mix.copy('node_modules/materialize-css/dist/js/materialize.js', 'resources/assets/js/materialize.js');
mix.copy('node_modules/materialize-css/dist/css/materialize.min.css', 'public/css/materialize.css');

mix.js([
    'resources/assets/js/app.js',
    'resources/assets/js/pxl.js',
    'resources/assets/js/materialize.js',
], 'public/js');
mix.combine([
    'resources/assets/js/login.js'
], 'public/js/login.js');
mix.js([
    'resources/assets/js/gallery.js'
], 'public/js/gallery.js');
mix.sass('resources/assets/sass/app.scss', 'public/css');
github austintoddj / canvas / webpack.mix.js View on Github external
const { mix } = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

mix.js('resources/assets/js/app.js', 'public/js')
   .sass('resources/assets/sass/app.scss', 'public/css');
github viraj-khatavkar / live-commenting-pusher-laravel / webpack.mix.js View on Github external
const { mix } = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

mix.js('resources/assets/js/app.js', 'public/js')
   .sass('resources/assets/sass/app.scss', 'public/css')
   .version();
github jiemoon / Jblog / webpack.mix.js View on Github external
| file for the application as well as bundling up all the JS files.
 |
 */

mix.webpackConfig({
    output: {
        publicPath: '/',
    },
    resolve:{
        alias: {
            'vue-router$': 'vue-router/dist/vue-router.common.js'
        }
    }
});

mix.js('resources/assets/js/app.js', 'public/js')
   .sass('resources/assets/sass/app.scss', 'public/css')
   .js('resources/assets/admin/admin.js', 'public/js')
   .extract(['vue', 'axios', 'vue-router'])
   .sass('resources/assets/admin/admin.scss', 'public/css');

if (mix.config.inProduction) {
    mix.version();
}
github jsvgoncalves / kwek-metrics / webpack.mix.js View on Github external
/*
 * This file is part of Kwek Metrics.
 */

const { mix } = require('laravel-mix');

mix.js('js/index.js', 'static/js')
   .sass('css/style.scss', 'static/css');
github bagisto / bagisto / packages / Webkul / Admin / webpack.mix.js View on Github external
if (mix == 'undefined') {
    const { mix } = require("laravel-mix");
}

require("laravel-mix-merge-manifest");

if (mix.inProduction()) {
    var publicPath = 'publishable/assets';
} else {
    var publicPath = "../../../public/vendor/webkul/admin/assets";
}

mix.setPublicPath(publicPath).mergeManifest();
mix.disableNotifications();

mix.js(__dirname + "/src/Resources/assets/js/app.js", "js/admin.js")
    .sass(__dirname + "/src/Resources/assets/sass/app.scss", "css/admin.css")
    .options({
        processCssUrls: false
    });

if (! mix.inProduction()) {
    mix.sourceMaps();
}

if (mix.inProduction()) {
    mix.version();
}
github GrafiteInc / Builder / src / Packages / Semantic / webpack.mix.js View on Github external
const { mix } = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Elixir Asset Management
 |--------------------------------------------------------------------------
 |
 | Elixir provides a clean, fluent API for defining some basic Gulp tasks
 | for your Laravel application. By default, we are compiling the Sass
 | file for our application, as well as publishing vendor resources.
 |
 */


mix.js('resources/assets/js/app.js', 'public/js')
    .sass('resources/assets/sass/app.scss', 'public/css')
    .copy('semantic/dist/semantic.min.css', 'public/css/semantic.min.css')
    .copy('semantic/dist/semantic.min.js', 'public/js/semantic.min.js');
github Azure-Samples / laravel-tasks / webpack.mix.js View on Github external
const { mix } = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

mix.js('resources/assets/js/app.js', 'public/js')
   .sass('resources/assets/sass/app.scss', 'public/css');
github orchidsoftware / platform / src / Foundation / Resources / assets / webpack.mix.js View on Github external
| for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

mix.less('./less/app.less', 'dist/css/orchid.css');


mix.copy('./img/', 'dist/img');
mix.copy('./node_modules/bootstrap/dist/fonts/', 'dist/fonts');
mix.copy('./node_modules/font-awesome/fonts/', 'dist/fonts');
mix.copy('./node_modules/simple-line-icons/fonts/', 'dist/fonts');
mix.copy('./node_modules/summernote/dist/font/', 'dist/fonts');


mix.js([
    './js/app.js',
    ]
, 'dist/js/orchid.js');
github Hardeepcoder / LaraBook-Social-Network-in-laravel-5.4 / LaraBook / webpack.mix.js View on Github external
const { mix } = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

mix.js('resources/assets/js/app.js', 'public/js')
mix.js('resources/assets/js/profile.js', 'public/js')
   .sass('resources/assets/sass/app.scss', 'public/css');