This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/webpack.mix.js

37 lines
765 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()
2019-07-08 19:41:58 +00:00
.postCss('resources/css/app.sss', 'source/dist/css', [
2019-06-07 20:41:43 +00:00
require('postcss-import')(),
2019-03-27 14:22:55 +00:00
require('tailwindcss')('tailwind.config.js'),
2019-06-24 07:03:16 +00:00
require('postcss-nested')(),
2019-03-27 14:22:55 +00:00
])
2019-04-12 06:37:12 +00:00
.extract(['highlightjs', 'vue'])
2019-03-27 14:41:01 +00:00
.js('resources/js/app.js', 'source/dist/js')
2019-03-27 14:22:55 +00:00
.browserSync({
proxy: 'localhost:8000',
files: [
2019-05-09 17:55:21 +00:00
'output_*/**/*'
2019-03-27 14:22:55 +00:00
],
notify: false,
2019-05-09 17:55:38 +00:00
open: false
2019-03-27 14:22:55 +00:00
})
.purgeCss({
2019-03-27 14:41:01 +00:00
folders: ['resources', 'output_*'],
2019-03-27 14:22:55 +00:00
whitelistPatterns: [/language/, /hljs/],
whitelistPatternsChildren: [/^markdown$/]
})
2019-07-08 19:41:58 +00:00
mix.webpackConfig({
module: {
rules: [
{
test: /\.sss?$/,
loader: 'postcss-loader'
}
]
}
})