Split up sections in webpack.mix.js
This commit is contained in:
parent
e1efe31fad
commit
78ec052af8
|
@ -3,19 +3,22 @@ let mix = require('laravel-mix');
|
||||||
require('laravel-mix-purgecss');
|
require('laravel-mix-purgecss');
|
||||||
|
|
||||||
mix.disableNotifications()
|
mix.disableNotifications()
|
||||||
.postCss('assets/css/app.css', 'source/dist/css', [
|
|
||||||
require('postcss-nested'),
|
mix.postCss('assets/css/app.css', 'source/dist/css', [
|
||||||
require('tailwindcss')('tailwind.config.js'),
|
require('postcss-nested'),
|
||||||
])
|
require('tailwindcss')('tailwind.config.js'),
|
||||||
.js([
|
])
|
||||||
'node_modules/jquery/src/jquery.js',
|
|
||||||
'assets/js/app.js',
|
mix.js([
|
||||||
], 'source/dist/js/app.js')
|
'node_modules/jquery/src/jquery.js',
|
||||||
.purgeCss({
|
'assets/js/app.js',
|
||||||
globs: [
|
], 'source/dist/js/app.js')
|
||||||
path.join(__dirname, 'assets/js/**/*.{js,vue}'),
|
|
||||||
path.join(__dirname, 'output_*/**/*.html'),
|
mix.purgeCss({
|
||||||
],
|
globs: [
|
||||||
whitelistPatterns: [/language/, /hljs/],
|
path.join(__dirname, 'assets/js/**/*.{js,vue}'),
|
||||||
whitelistPatternsChildren: [/^markdown$/]
|
path.join(__dirname, 'output_*/**/*.html'),
|
||||||
});
|
],
|
||||||
|
whitelistPatterns: [/language/, /hljs/],
|
||||||
|
whitelistPatternsChildren: [/^markdown$/]
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in a new issue