Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
split vendor and platform build
Browse files Browse the repository at this point in the history
  • Loading branch information
uyab committed Nov 17, 2022
1 parent 6e9cfb4 commit 7b0fb57
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions public/js/platform.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public/js/vendor.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"/css/app.css": "/css/app.css?id=9ccf21a457016100da27",
"/js/all.js": "/js/all.js?id=ab3c35e8986e524c8081",
"/js/vendor.js": "/js/vendor.js?id=5caae21c1a3b5ad6980e",
"/js/platform.js": "/js/platform.js?id=8817ae3ca825b1eb8779",
"/css/all.css": "/css/all.css?id=7b2e7f4696f2d3bf19b0",
"/semantic/semantic.min.css": "/semantic/semantic.min.css?id=395cd6af3c3778570b67"
}
17 changes: 17 additions & 0 deletions webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ mix.scripts([
'resources/js/init/quick-switcher.js'
], 'public/js/all.js');

mix.scripts([
'./node_modules/jquery/dist/jquery.min.js',
'./public/semantic/semantic.min.js',
'./node_modules/simplebar/dist/simplebar.js',
'resources/js/components/basictable.js',
'resources/js/components/keymaster.js',
'resources/js/components/fileuploader.js',
'resources/js/components/fuse.min.js',
], 'public/js/vendor.js');

mix.scripts([
'resources/js/init/sidebar.js',
'resources/js/init/ui.js',
// Somehow, quick-switcher.js must be initialized last, after all other UI elements. Don't know why :(
'resources/js/init/quick-switcher.js'
], 'public/js/platform.js');

mix.sass('resources/sass/app.scss', 'public/css')
.options({
processCssUrls: false
Expand Down

0 comments on commit 7b0fb57

Please sign in to comment.