comparison config/webpacker.yml @ 468:802dcd44188e

Now with webpacker
author nanaya <me@nanaya.pro>
date Sun, 23 Feb 2020 20:23:09 +0900
parents
children
comparison
equal deleted inserted replaced
467:fd3078b4d355 468:802dcd44188e
1 # Note: You must restart bin/webpack-dev-server for changes to take effect
2
3 default: &default
4 source_path: app/javascript
5 source_entry_path: packs
6 public_root_path: public
7 public_output_path: packs
8 cache_path: tmp/cache/webpacker
9 check_yarn_integrity: false
10 webpack_compile_output: true
11
12 # Additional paths webpack should lookup modules
13 # ['app/assets', 'engine/foo/app/assets']
14 resolved_paths: []
15
16 # Reload manifest.json on all requests so we reload latest compiled packs
17 cache_manifest: false
18
19 # Extract and emit a css file
20 extract_css: false
21
22 static_assets_extensions:
23 - .jpg
24 - .jpeg
25 - .png
26 - .gif
27 - .tiff
28 - .ico
29 - .svg
30 - .eot
31 - .otf
32 - .ttf
33 - .woff
34 - .woff2
35
36 extensions:
37 - .coffee
38 - .mjs
39 - .js
40 - .sass
41 - .scss
42 - .css
43 - .module.sass
44 - .module.scss
45 - .module.css
46 - .png
47 - .svg
48 - .gif
49 - .jpeg
50 - .jpg
51
52 development:
53 <<: *default
54 compile: true
55
56 # Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules
57 check_yarn_integrity: true
58
59 # Reference: https://webpack.js.org/configuration/dev-server/
60 dev_server:
61 https: false
62 host: localhost
63 port: 3035
64 public: localhost:3035
65 hmr: false
66 # Inline should be set to true if using HMR
67 inline: true
68 overlay: true
69 compress: true
70 disable_host_check: true
71 use_local_ip: false
72 quiet: false
73 pretty: false
74 headers:
75 'Access-Control-Allow-Origin': '*'
76 watch_options:
77 ignored: '**/node_modules/**'
78
79
80 test:
81 <<: *default
82 compile: true
83
84 # Compile test packs to a separate directory
85 public_output_path: packs-test
86
87 production:
88 <<: *default
89
90 # Production depends on precompilation of packs prior to booting for performance.
91 compile: false
92
93 # Extract and emit a css file
94 extract_css: true
95
96 # Cache manifest.json for performance
97 cache_manifest: true