oliverdavies.uk/webpack.mix.js

30 lines
880 B
JavaScript
Raw Normal View History

let mix = require('laravel-mix');
require('laravel-mix-purgecss');
require('laravel-mix-tailwind');
mix.disableNotifications()
.postCss('assets/css/app.css', 'source/dist/css')
2018-09-04 23:30:36 +00:00
.js([
// 'node_modules/highlightjs/highlight.pack.js',
2018-09-05 22:13:50 +00:00
'node_modules/jquery/dist/jquery.js',
2018-09-04 21:10:47 +00:00
'assets/js/app.js',
2018-09-04 18:46:58 +00:00
], 'source/dist/js/all.js')
.copyDirectory('node_modules/font-awesome/fonts', 'source/dist/fonts')
.tailwind()
2018-07-13 23:40:32 +00:00
.purgeCss({
globs: [
2018-09-05 16:44:34 +00:00
path.join(__dirname, 'assets/js/**/*.{js,vue}'),
2018-07-13 23:40:32 +00:00
path.join(__dirname, 'output_*/**/*.html'),
],
whitelistPatterns: [/language/, /hljs/],
whitelistPatternsChildren: [/^markdown$/]
})
.options({
postCss: [
require('postcss-import')(),
require('postcss-nested')(),
],
processCssUrls: false,
});