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