关于 Laravel-mix extract 提取库的一个问题

使用 Laravel-mix 的 extract 方法提取 vendor 库,但是编译后的文件中,app.js 仍然有 vendor 库,并且 vendor.js 也同样存在相同的库。就是 app.jsvendor.js 同时包含了提取的库。请问如何解决?

webpack.mix.js:

mix.js('resources/js/app.js', 'public/js').extract(['vue', 'axios', 'element-ui', 'nprogress']);
mix.styles('resources/css/app.css', 'public/css/app.css');

if (mix.inProduction()) {
       mix.version();
}

app.js:

require('./bootstrap');

window.Vue = require('vue');
import ElementUI from 'element-ui';
import './../sass/element-variables.scss'
window.NProgress = require('nprogress');
import 'nprogress/nprogress.css';

Vue.use(ElementUI);

Vue.component('app-layout', require('./components/AppLayout.vue').default);

const app = new Vue({
    el: '#app',
});
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。