Alter PurgeCSS configuration, build command
This commit is contained in:
parent
8496339ccb
commit
b5aeb110d3
|
@ -1,10 +1,9 @@
|
||||||
[build]
|
[build]
|
||||||
command = """
|
command = """
|
||||||
composer test && \
|
composer test && \
|
||||||
composer build && \
|
|
||||||
npm run lint --fix-dry-run && \
|
npm run lint --fix-dry-run && \
|
||||||
npm run production && \
|
npm run production && \
|
||||||
cp -R source/build output_prod
|
composer production
|
||||||
"""
|
"""
|
||||||
publish = "output_prod"
|
publish = "output_prod"
|
||||||
environment = { PHP_VERSION = "7.2" }
|
environment = { PHP_VERSION = "7.2" }
|
||||||
|
|
|
@ -20,8 +20,8 @@ mix.browserSync({
|
||||||
})
|
})
|
||||||
|
|
||||||
mix.purgeCss({
|
mix.purgeCss({
|
||||||
extensions: ['html', 'twig', 'vue'],
|
extensions: ['html', 'md', 'twig', 'vue'],
|
||||||
folders: ['assets/js', 'output_*'],
|
folders: ['assets/js', 'source'],
|
||||||
whitelistPatterns: [],
|
whitelistPatterns: [],
|
||||||
whitelistPatternsChildren: []
|
whitelistPatternsChildren: []
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue