Fully replace gulp with vite
This commit is contained in:
13
dashboard/src/modules.js
Normal file
13
dashboard/src/modules.js
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
window.cloudronApiOrigin = import.meta.env.VITE_API_ORIGIN || '';
|
||||
|
||||
import '@fortawesome/fontawesome-free/css/all.min.css';
|
||||
import '@fontsource/noto-sans';
|
||||
import 'bootstrap-sass';
|
||||
import Chart from 'chart.js/auto';
|
||||
|
||||
import * as moment from 'moment/dist/moment.js';
|
||||
|
||||
// attach to global for compatibility
|
||||
window.moment = moment.default;
|
||||
window.Chart = Chart;
|
||||
Reference in New Issue
Block a user