2017-05-03 00:04:16 +00:00
|
|
|
# Note: You must restart bin/webpack-dev-server for changes to take effect
|
|
|
|
|
|
|
|
default: &default
|
2017-06-18 00:57:09 +00:00
|
|
|
source_path: app/javascript
|
2024-04-23 16:45:12 +00:00
|
|
|
source_entry_path: entrypoints
|
2019-03-15 14:05:31 +00:00
|
|
|
public_root_path: public
|
2017-06-18 00:57:09 +00:00
|
|
|
public_output_path: packs
|
2017-09-27 12:41:54 +00:00
|
|
|
cache_path: tmp/cache/webpacker
|
2019-03-15 14:05:31 +00:00
|
|
|
check_yarn_integrity: false
|
2021-02-03 16:13:43 +00:00
|
|
|
webpack_compile_output: true
|
2017-09-27 12:41:54 +00: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 14:05:31 +00:00
|
|
|
# Extract and emit a css file
|
|
|
|
extract_css: true
|
|
|
|
|
|
|
|
static_assets_extensions:
|
|
|
|
- .jpg
|
|
|
|
- .jpeg
|
|
|
|
- .png
|
|
|
|
- .tiff
|
|
|
|
- .ico
|
|
|
|
- .svg
|
2019-03-16 13:23:50 +00:00
|
|
|
- .gif
|
2019-03-15 14:05:31 +00:00
|
|
|
- .eot
|
|
|
|
- .otf
|
|
|
|
- .ttf
|
|
|
|
- .woff
|
|
|
|
- .woff2
|
|
|
|
|
2017-05-03 00:04:16 +00:00
|
|
|
extensions:
|
2019-03-15 14:05:31 +00:00
|
|
|
- .mjs
|
2017-05-03 00:04:16 +00:00
|
|
|
- .js
|
2023-02-20 02:20:59 +00:00
|
|
|
- .jsx
|
2023-04-03 01:31:39 +00:00
|
|
|
- .ts
|
|
|
|
- .tsx
|
2017-05-03 00:04:16 +00:00
|
|
|
- .sass
|
|
|
|
- .scss
|
|
|
|
- .css
|
2019-03-15 14:05:31 +00:00
|
|
|
- .module.sass
|
|
|
|
- .module.scss
|
|
|
|
- .module.css
|
2017-05-03 00:04:16 +00:00
|
|
|
- .png
|
|
|
|
- .svg
|
|
|
|
- .gif
|
|
|
|
- .jpeg
|
|
|
|
- .jpg
|
|
|
|
|
|
|
|
development:
|
|
|
|
<<: *default
|
2019-03-15 14:05:31 +00:00
|
|
|
|
2017-09-27 12:41:54 +00:00
|
|
|
compile: true
|
2017-05-03 00:04:16 +00:00
|
|
|
|
2019-03-15 14:05:31 +00:00
|
|
|
# Reference: https://webpack.js.org/configuration/dev-server/
|
2017-06-18 00:57:09 +00:00
|
|
|
dev_server:
|
2019-03-15 14:05:31 +00:00
|
|
|
https: false
|
2023-08-29 08:17:57 +00:00
|
|
|
host: 0.0.0.0
|
2017-09-27 12:41:54 +00:00
|
|
|
port: 3035
|
2019-03-15 14:05:31 +00:00
|
|
|
public: localhost:3035
|
2017-09-27 12:41:54 +00:00
|
|
|
hmr: false
|
2019-03-15 14:05:31 +00: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 00:57:09 +00:00
|
|
|
|
2017-05-03 00:04:16 +00:00
|
|
|
test:
|
|
|
|
<<: *default
|
2017-06-18 00:57:09 +00:00
|
|
|
|
2023-03-07 03:49:43 +00:00
|
|
|
# CI precompiles packs prior to running the tests.
|
2018-09-13 13:18:47 +00:00
|
|
|
# Also avoids race conditions in parallel_tests.
|
|
|
|
compile: false
|
|
|
|
|
2019-03-15 14:05:31 +00:00
|
|
|
# Compile test packs to a separate directory
|
|
|
|
public_output_path: packs-test
|
|
|
|
|
2017-05-03 00:04:16 +00:00
|
|
|
production:
|
|
|
|
<<: *default
|
2017-09-27 12:41:54 +00:00
|
|
|
|
|
|
|
# Production depends on precompilation of packs prior to booting for performance.
|
|
|
|
compile: false
|
|
|
|
|
|
|
|
# Cache manifest.json for performance
|
|
|
|
cache_manifest: true
|