2018-05-18 20:41:26 +00:00
|
|
|
let mix = require('laravel-mix');
|
|
|
|
|
|
|
|
require('laravel-mix-purgecss');
|
|
|
|
require('laravel-mix-tailwind');
|
|
|
|
|
|
|
|
mix.disableNotifications()
|
2018-09-04 18:46:58 +00:00
|
|
|
.sass('assets/sass/site.sass', 'source/dist/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',
|
2018-09-04 18:46:58 +00:00
|
|
|
], 'source/dist/js/all.js')
|
|
|
|
.copyDirectory('node_modules/font-awesome/fonts', 'source/dist/fonts')
|
2018-05-18 20:41:26 +00:00
|
|
|
.tailwind()
|
2018-07-13 23:40:32 +00:00
|
|
|
.purgeCss({
|
|
|
|
globs: [
|
|
|
|
path.join(__dirname, 'output_*/**/*.html'),
|
|
|
|
],
|
|
|
|
whitelistPatterns: [/language/, /hljs/],
|
|
|
|
whitelistPatternsChildren: [/^markdown$/]
|
2018-05-18 20:41:26 +00:00
|
|
|
});
|