Update Load Asset Module
This commit is contained in:
parent
497a67af81
commit
4f9c3a287a
@ -4,14 +4,6 @@ import "../metronic/core/index";
|
||||
import "../metronic/app/layouts/base.js";
|
||||
|
||||
import $ from 'jquery';
|
||||
|
||||
window.jQuery = $;
|
||||
window.$ = $;
|
||||
|
||||
import TomSelect from "tom-select";
|
||||
|
||||
document.querySelectorAll('.tomselect').forEach((el)=>{
|
||||
let settings = {
|
||||
plugins: ['dropdown_input']
|
||||
};
|
||||
new TomSelect(el,settings);
|
||||
});
|
||||
|
@ -10,7 +10,7 @@
|
||||
<base href="/">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||
@vite('resources/css/app.scss')
|
||||
@vite(Module::getAssets())
|
||||
@stack('styles')
|
||||
</head>
|
||||
|
||||
@ -40,7 +40,6 @@
|
||||
<!--end::Theme mode setup on page load-->
|
||||
|
||||
@yield('main')
|
||||
@vite('resources/js/app.js')
|
||||
@stack('scripts')
|
||||
</body>
|
||||
|
||||
|
@ -8,6 +8,8 @@ const allPaths = [
|
||||
'resources/js/app.js',
|
||||
];
|
||||
|
||||
const paths = await collectModuleAssetsPaths(allPaths,'Modules');
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
sourcemap: true,
|
||||
@ -24,7 +26,7 @@ export default defineConfig({
|
||||
jQuery: 'jquery',
|
||||
}),
|
||||
laravel({
|
||||
input: allPaths,
|
||||
input: paths,
|
||||
refresh: true
|
||||
}),
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user