pixelfed/webpack.mix.js

70 lines
1.7 KiB
JavaScript
Raw Normal View History

2018-04-15 23:56:48 +00:00
let mix = require('laravel-mix');
mix.options({
purifyCss: true,
});
2018-04-15 23:56:48 +00:00
/*
2019-02-03 21:53:13 +00:00
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
2018-04-15 23:56:48 +00:00
mix.sass('resources/assets/sass/app.scss', 'public/css', {
implementation: require('node-sass')
})
.sass('resources/assets/sass/appdark.scss', 'public/css', {
implementation: require('node-sass')
})
.sass('resources/assets/sass/landing.scss', 'public/css', {
implementation: require('node-sass')
}).version();
2018-04-15 23:56:48 +00:00
mix.js('resources/assets/js/app.js', 'public/js')
2019-02-03 21:53:13 +00:00
.js('resources/assets/js/activity.js', 'public/js')
.js('resources/assets/js/components.js', 'public/js')
2019-03-16 08:46:46 +00:00
//.js('resources/assets/js/embed.js', 'public')
2019-02-11 05:40:22 +00:00
// Discover component
.js('resources/assets/js/discover.js', 'public/js')
// Profile component
.js('resources/assets/js/profile.js', 'public/js')
// Status component
.js('resources/assets/js/status.js', 'public/js')
// Timeline component
2019-02-03 21:53:13 +00:00
.js('resources/assets/js/timeline.js', 'public/js')
2019-02-11 05:40:22 +00:00
2019-03-26 04:22:25 +00:00
// ComposeModal component
.js('resources/assets/js/compose.js', 'public/js')
// SearchResults component
.js('resources/assets/js/search.js', 'public/js')
2019-04-07 18:15:36 +00:00
// Developer Components
.js('resources/assets/js/developers.js', 'public/js')
2019-05-27 19:57:20 +00:00
// // Direct Component
// .js('resources/assets/js/direct.js', 'public/js')
// Loops Component
.js('resources/assets/js/loops.js', 'public/js')
.extract([
'lodash',
'popper.js',
'jquery',
'axios',
'bootstrap',
'vue',
'readmore-js'
])
2019-02-03 21:53:13 +00:00
.version();