2018-05-18 20:41:26 +00:00
|
|
|
let mix = require('laravel-mix');
|
|
|
|
|
|
|
|
require('laravel-mix-purgecss');
|
|
|
|
require('laravel-mix-tailwind');
|
|
|
|
|
|
|
|
mix.disableNotifications()
|
2018-05-28 20:55:23 +00:00
|
|
|
.less('assets/less/site.less', 'source/build/css')
|
2018-06-01 21:42:43 +00:00
|
|
|
.combine([
|
|
|
|
'node_modules/jquery/dist/jquery.js',
|
|
|
|
'node_modules/highlightjs/highlight.pack.js',
|
|
|
|
'assets/js/site.js',
|
|
|
|
], 'source/build/js/all.js')
|
2018-05-18 20:41:26 +00:00
|
|
|
.copyDirectory('assets/images', 'source/build/images')
|
|
|
|
.copyDirectory('node_modules/font-awesome/fonts', 'source/build/fonts')
|
|
|
|
.tailwind()
|
|
|
|
.purgeCss({
|
|
|
|
globs: [
|
|
|
|
path.join(__dirname, 'output_*/**/*.html'),
|
|
|
|
]
|
2018-05-28 20:55:23 +00:00
|
|
|
})
|
|
|
|
.options({
|
|
|
|
processCssUrls: false
|
2018-05-18 20:41:26 +00:00
|
|
|
});
|