2017-05-03 03:04:16 +03:00
|
|
|
# Note: You must restart bin/webpack-dev-server for changes to take effect
|
|
|
|
|
|
|
|
default: &default
|
2017-06-18 03:57:09 +03:00
|
|
|
source_path: app/javascript
|
|
|
|
source_entry_path: packs
|
2019-03-15 16:05:31 +02:00
|
|
|
public_root_path: public
|
2017-06-18 03:57:09 +03:00
|
|
|
public_output_path: packs
|
2017-09-27 15:41:54 +03:00
|
|
|
cache_path: tmp/cache/webpacker
|
2019-03-15 16:05:31 +02:00
|
|
|
check_yarn_integrity: false
|
|
|
|
webpack_compile_output: false
|
2017-09-27 15:41:54 +03:00
|
|
|
|
|
|
|
# Additional paths webpack should lookup modules
|
|
|
|
# ['app/assets', 'engine/foo/app/assets']
|
|
|
|
resolved_paths: []
|
|
|
|
|
|
|
|
# Reload manifest.json on all requests so we reload latest compiled packs
|
|
|
|
cache_manifest: false
|
|
|
|
|
2019-03-15 16:05:31 +02:00
|
|
|
# Extract and emit a css file
|
|
|
|
extract_css: true
|
|
|
|
|
|
|
|
static_assets_extensions:
|
|
|
|
- .jpg
|
|
|
|
- .jpeg
|
|
|
|
- .png
|
|
|
|
- .tiff
|
|
|
|
- .ico
|
|
|
|
- .svg
|
2019-03-16 15:23:50 +02:00
|
|
|
- .gif
|
2019-03-15 16:05:31 +02:00
|
|
|
- .eot
|
|
|
|
- .otf
|
|
|
|
- .ttf
|
|
|
|
- .woff
|
|
|
|
- .woff2
|
|
|
|
|
2017-05-03 03:04:16 +03:00
|
|
|
extensions:
|
2019-03-15 16:05:31 +02:00
|
|
|
- .mjs
|
2017-05-03 03:04:16 +03:00
|
|
|
- .js
|
2023-02-20 04:20:59 +02:00
|
|
|
- .jsx
|
2023-04-03 04:31:39 +03:00
|
|
|
- .ts
|
|
|
|
- .tsx
|
2017-05-03 03:04:16 +03:00
|
|
|
- .sass
|
|
|
|
- .scss
|
|
|
|
- .css
|
2019-03-15 16:05:31 +02:00
|
|
|
- .module.sass
|
|
|
|
- .module.scss
|
|
|
|
- .module.css
|
2017-05-03 03:04:16 +03:00
|
|
|
- .png
|
|
|
|
- .svg
|
|
|
|
- .gif
|
|
|
|
- .jpeg
|
|
|
|
- .jpg
|
|
|
|
|
|
|
|
development:
|
|
|
|
<<: *default
|
2019-03-15 16:05:31 +02:00
|
|
|
|
2017-09-27 15:41:54 +03:00
|
|
|
compile: true
|
2017-05-03 03:04:16 +03:00
|
|
|
|
2019-03-15 16:05:31 +02:00
|
|
|
# Reference: https://webpack.js.org/configuration/dev-server/
|
2017-06-18 03:57:09 +03:00
|
|
|
dev_server:
|
2019-03-15 16:05:31 +02:00
|
|
|
https: false
|
2023-08-29 11:17:57 +03:00
|
|
|
host: 0.0.0.0
|
2017-09-27 15:41:54 +03:00
|
|
|
port: 3035
|
2019-03-15 16:05:31 +02:00
|
|
|
public: localhost:3035
|
2017-09-27 15:41:54 +03:00
|
|
|
hmr: false
|
2019-03-15 16:05:31 +02:00
|
|
|
# Inline should be set to true if using HMR
|
|
|
|
inline: true
|
|
|
|
overlay: true
|
|
|
|
compress: true
|
|
|
|
disable_host_check: true
|
|
|
|
use_local_ip: false
|
|
|
|
quiet: false
|
|
|
|
headers:
|
|
|
|
'Access-Control-Allow-Origin': '*'
|
|
|
|
watch_options:
|
|
|
|
ignored: '**/node_modules/**'
|
2017-06-18 03:57:09 +03:00
|
|
|
|
2017-05-03 03:04:16 +03:00
|
|
|
test:
|
|
|
|
<<: *default
|
2017-06-18 03:57:09 +03:00
|
|
|
|
2023-03-07 05:49:43 +02:00
|
|
|
# CI precompiles packs prior to running the tests.
|
2018-09-13 16:18:47 +03:00
|
|
|
# Also avoids race conditions in parallel_tests.
|
|
|
|
compile: false
|
|
|
|
|
2019-03-15 16:05:31 +02:00
|
|
|
# Compile test packs to a separate directory
|
|
|
|
public_output_path: packs-test
|
|
|
|
|
2017-05-03 03:04:16 +03:00
|
|
|
production:
|
|
|
|
<<: *default
|
2017-09-27 15:41:54 +03:00
|
|
|
|
|
|
|
# Production depends on precompilation of packs prior to booting for performance.
|
|
|
|
compile: false
|
|
|
|
|
|
|
|
# Cache manifest.json for performance
|
|
|
|
cache_manifest: true
|