mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-16 14:48:11 +00:00
First set of code for new layout based on AdminLTE 3.0
This commit is contained in:
44
frontend/webpack.mix.js
vendored
Normal file
44
frontend/webpack.mix.js
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
const mix = require('laravel-mix');
|
||||
require('laravel-mix-bundle-analyzer');
|
||||
|
||||
|
||||
// production
|
||||
mix.webpackConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
'vue$': 'vue/dist/vue.runtime.common.js'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
mix
|
||||
// AUTO LOAD
|
||||
// .autoload({
|
||||
// jquery: ['$', 'window.jQuery','jQuery']
|
||||
// })
|
||||
|
||||
// MIX IN CLASSIC SCRIPT
|
||||
// .babel([
|
||||
// '../resources/assets/js/v2/classic/adminlte.js',
|
||||
// ], 'public/v2/js/classic.js')
|
||||
|
||||
// MIX IN CLASSIC SCRIPT
|
||||
// .scripts([
|
||||
// '../resources/assets/js/v2/classic/adminlte.js',
|
||||
// ], 'public/v2/js/classic.js')
|
||||
|
||||
|
||||
// COPY SCRIPT
|
||||
//.copy('../resources/assets/js/v2/classic/adminlte.js', 'public/v2/js/classic.js')
|
||||
|
||||
// dashboard component (frontpage):
|
||||
.js('src/pages/dashboard.js', 'public/js')
|
||||
|
||||
|
||||
|
||||
.extract().sourceMaps()
|
||||
.sass('src/app.scss', 'public/css');
|
||||
|
||||
if (!mix.inProduction()) {
|
||||
mix.bundleAnalyzer();
|
||||
}
|
||||
Reference in New Issue
Block a user