S
S
Sergey Khlopov2019-12-19 10:25:40
webpack
Sergey Khlopov, 2019-12-19 10:25:40

Is it possible for some files to exclude the template which is in chunkFilename?

Hello, please tell me, I am creating a site on laravel, laravel uses laravel-mix

Laravel Mix is ​​a clean and flexible API for defining Webpack build instructions for your Laravel application

I have this configuration:
const mix = require('laravel-mix');
require('laravel-mix-merge-manifest');

mix.js('resources/js/admin/app.js', 'public/js').extract(['vue','vuex','axios']).mergeManifest();
if(mix.inProduction()) {
    mix.webpackConfig({
        output: {chunkFilename: '[name].[chunkhash].js'}
    });
    mix.version();
}

As a result, I get the following paths:
/js/app.dace223aee5a39cba6d7.js
/js/vendor.a7708b6ab4541f5eaba0.js

And is it possible to somehow make it so that specifically for these two files app, vendor, this template is not applied chunkFilename: '[name].[chunkhash].js'?
Thank you in advance for your response.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question