/
webpacker.yml
93 lines (84 loc) · 3.03 KB
/
webpacker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# File written by Decidim generator
# Note: You must restart bin/webpack-dev-server for changes to take effect
default: &default
source_path: app/packs
source_entry_path: entrypoints
public_output_path: decidim-packs
public_root_path: public
webpack_compile_output: true
cache_path: tmp/webpacker-cache
extract_css: true
additional_paths:
- node_modules
- app/packs
- ../decidim-accountability/app/packs
- ../decidim-admin/app/packs
- ../decidim-api/app/packs
- ../decidim-assemblies/app/packs
- ../decidim-blogs/app/packs
- ../decidim-budgets/app/packs
- ../decidim-comments/app/packs
- ../decidim-conferences/app/packs
- ../decidim-consultations/app/packs
- ../decidim-core/app/packs
- ../decidim-debates/app/packs
- ../decidim-dev/app/packs
- ../decidim-elections/app/packs
- ../decidim-forms/app/packs
- ../decidim-generators/app/packs
- ../decidim-initiatives/app/packs
- ../decidim-meetings/app/packs
- ../decidim-pages/app/packs
- ../decidim-participatory_processes/app/packs
- ../decidim-proposals/app/packs
- ../decidim-sortitions/app/packs
- ../decidim-surveys/app/packs
- ../decidim-system/app/packs
- ../decidim-templates/app/packs
- ../decidim-verifications/app/packs
# Reload manifest.json on all requests so we reload latest compiled packs
cache_manifest: false
development:
<<: *default
compile: true
# Compile test packs to decidim decidim-packs folder
# Reference: https://webpack.js.org/configuration/dev-server/
dev_server:
https: false
host: localhost
# Notice that we use a different port (to prevent blocking the default one) as
# there will be at least two webpack servers running
port: 3035
public: localhost:3035
# Inject browserside javascript that required by both HMR and Live(full) reload
inject_client: true
# Hot Module Replacement updates modules while the application is running without a full reload
hmr: false
# Inline should be set to true if using HMR; it inserts a script to take care of live reloading
inline: true
# Should we show a full-screen overlay in the browser when there are compiler errors or warnings?
overlay: true
# Should we use gzip compression?
compress: true
# Note that apps that do not check the host are vulnerable to DNS rebinding attacks
disable_host_check: true
# This option lets the browser open with your local IP
use_local_ip: false
# When enabled, nothing except the initial startup information will be written to the console.
# This also means that errors or warnings from webpack are not visible.
quiet: false
pretty: false
headers:
'Access-Control-Allow-Origin': '*'
watch_options:
ignored: '**/node_modules/**'
test:
<<: *default
compile: true
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