From b5aeb110d399ecb9dcd853a54f20e38d2e5194f3 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 12 Nov 2019 20:39:32 +0000 Subject: [PATCH] Alter PurgeCSS configuration, build command --- netlify.toml | 3 +-- webpack.mix.js | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/netlify.toml b/netlify.toml index b81bed96..2a662168 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,10 +1,9 @@ [build] command = """ composer test && \ - composer build && \ npm run lint --fix-dry-run && \ npm run production && \ - cp -R source/build output_prod + composer production """ publish = "output_prod" environment = { PHP_VERSION = "7.2" } diff --git a/webpack.mix.js b/webpack.mix.js index eb55394d..76622528 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -20,8 +20,8 @@ mix.browserSync({ }) mix.purgeCss({ - extensions: ['html', 'twig', 'vue'], - folders: ['assets/js', 'output_*'], + extensions: ['html', 'md', 'twig', 'vue'], + folders: ['assets/js', 'source'], whitelistPatterns: [], whitelistPatternsChildren: [] })