Unverified Commit f731de14 authored by Nicolas Widart's avatar Nicolas Widart Committed by GitHub

Merge pull request #655 from mikemand/feature/simple-code-splitting

Extract vendor packages from main JS bundle
parents 7aa63c2d ba9d98d9
{
"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