Extract vendor packages from main JS bundle

This gives us smaller files sizes, as well as a file that will hardly ever change
Signed-off-by: 's avatarMicheal Mand <micheal@kmdwebdesigns.com>
parent 6c771cf5
{
"presets": ["es2015", "stage-3"]
"plugins": [
"syntax-dynamic-import",
"transform-object-rest-spread"
],
"presets": [
["env"]
]
}
......@@ -88,6 +88,8 @@
};
</script>
<script src="{{ mix('js/manifest.js') }}"></script>
<script src="{{ mix('js/vendor.js') }}"></script>
<script src="{{ mix('js/app.js') }}"></script>
<?php if (is_module_enabled('Notification')): ?>
......
const mix = require('laravel-mix');
if (mix.inProduction()) {
mix.sourceMaps().disableNotifications().version();
}
/*
|--------------------------------------------------------------------------
| Mix Asset Management
......@@ -12,4 +16,5 @@ const mix = require('laravel-mix');
*/
mix.js('resources/assets/js/app.js', 'public/js')
.extract(['vue', 'vue-i18n', 'vue-events', 'vue-router', 'vue-shortkey', 'vue-simplemde'])
.sass('resources/assets/sass/app.scss', 'public/css');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment