oliverdavies.uk/webpack.mix.js
2019-03-04 11:34:58 +00:00

22 lines
676 B
JavaScript

let mix = require('laravel-mix');
require('laravel-mix-purgecss');
require('laravel-mix-tailwind');
mix.disableNotifications()
.sass('assets/sass/app.sass', 'source/dist/css')
.js([
'node_modules/jquery/src/jquery.js',
'assets/js/app.js',
], 'source/dist/js/all.js')
.copyDirectory('node_modules/font-awesome/fonts', 'source/dist/fonts')
.tailwind('tailwind.config.js')
.purgeCss({
globs: [
path.join(__dirname, 'assets/js/**/*.{js,vue}'),
path.join(__dirname, 'output_*/**/*.html'),
],
whitelistPatterns: [/language/, /hljs/],
whitelistPatternsChildren: [/^markdown$/]
});