oliverdavies.uk/webpack.mix.js

28 lines
566 B
JavaScript
Raw Normal View History

2019-03-25 17:15:33 +00:00
let mix = require('laravel-mix')
2019-03-25 17:15:33 +00:00
require('laravel-mix-purgecss')
mix.disableNotifications()
.postCss('resources/css/app.css', 'source/dist/css', [
2019-07-16 22:14:07 +00:00
require('postcss-import'),
require('tailwindcss'),
require('postcss-nested'),
2019-03-27 14:22:55 +00:00
])
2019-03-27 14:41:01 +00:00
.js('resources/js/app.js', 'source/dist/js')
2019-08-08 23:56:56 +00:00
.extract()
mix.browserSync({
proxy: 'localhost:8000',
files: [
'output_*/**/*'
],
notify: false,
open: false
})
mix.purgeCss({
folders: ['resources', 'output_*'],
whitelistPatterns: [/language/, /hljs/],
whitelistPatternsChildren: [/^markdown$/]
})