donpuerto
276
5
Mix

It is possible to have two compiled webpack?

Posted 2 years ago by donpuerto

I need to split the jquery component at the header section in order to run my jquery plugin. As by default it integrated on one webpack.

elixir(mix => {
    mix.styles([
        'royal_preloader.css',
        'bootstrap.min.css',
        'ionicons.min.css',
        'pe-icon-7-stroke.css',
        'magnific-popup.css',
        'logoiconfont.css',
        'style.css',
    ], 'public/css/app.css')

    .webpack('header.js')
    .webpack('footer.js')
    .version(['css/app.css', 'js/footer.js','js/header.js']);
});

Can someone tell me what is the best practice?

Please sign in or create an account to participate in this conversation.