|
|
|
@ -12,11 +12,14 @@ default: &default
|
|
|
|
|
# ['app/assets', 'engine/foo/app/assets'] |
|
|
|
|
additional_paths: ['node_modules/govuk-frontend/govuk'] |
|
|
|
|
|
|
|
|
|
# Reload manifest.json on all requests so we reload latest compiled packs |
|
|
|
|
cache_manifest: false |
|
|
|
|
# Cache manifest.json for performance |
|
|
|
|
cache_manifest: true |
|
|
|
|
|
|
|
|
|
# Extract and emit a css file |
|
|
|
|
extract_css: false |
|
|
|
|
extract_css: true |
|
|
|
|
|
|
|
|
|
# Production depends on precompilation of packs prior to booting for performance. |
|
|
|
|
compile: false |
|
|
|
|
|
|
|
|
|
static_assets_extensions: |
|
|
|
|
- .jpg |
|
|
|
@ -51,6 +54,12 @@ development:
|
|
|
|
|
<<: *default |
|
|
|
|
compile: true |
|
|
|
|
|
|
|
|
|
# Reload manifest.json on all requests so we reload latest compiled packs |
|
|
|
|
cache_manifest: false |
|
|
|
|
|
|
|
|
|
# Extract and emit a css file |
|
|
|
|
extract_css: false |
|
|
|
|
|
|
|
|
|
# Reference: https://webpack.js.org/configuration/dev-server/ |
|
|
|
|
dev_server: |
|
|
|
|
https: false |
|
|
|
@ -76,17 +85,18 @@ test:
|
|
|
|
|
<<: *default |
|
|
|
|
compile: true |
|
|
|
|
|
|
|
|
|
# Reload manifest.json on all requests so we reload latest compiled packs |
|
|
|
|
cache_manifest: false |
|
|
|
|
|
|
|
|
|
# Extract and emit a css file |
|
|
|
|
extract_css: false |
|
|
|
|
|
|
|
|
|
# Compile test packs to a separate directory |
|
|
|
|
public_output_path: packs-test |
|
|
|
|
|
|
|
|
|
production: |
|
|
|
|
<<: *default |
|
|
|
|
|
|
|
|
|
# Production depends on precompilation of packs prior to booting for performance. |
|
|
|
|
compile: false |
|
|
|
|
|
|
|
|
|
# Cache manifest.json for performance |
|
|
|
|
cache_manifest: true |
|
|
|
|
sandbox: |
|
|
|
|
<<: *default |
|
|
|
|
|
|
|
|
|
# Extract and emit a css file |
|
|
|
|
extract_css: true |
|
|
|
|
production: |
|
|
|
|
<<: *default |
|
|
|
|