teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

修正

2020/09/03 10:55

投稿

tomsuma
tomsuma

スコア38

title CHANGED
File without changes
body CHANGED
@@ -49,4 +49,133 @@
49
49
  digillect/registry-cleaner Tool to remove unused images from Docker reg… 0 [OK]
50
50
  pivnet/registry-gcloud-image 0
51
51
  deepsecurity/registryviews Deep Security Smart Check 0
52
+ ```
53
+
54
+
55
+
56
+ ```
57
+ webpacker.yml
58
+ # Note: You must restart bin/webpack-dev-server for changes to take effect
59
+
60
+ default: &default
61
+ source_path: app/javascript
62
+ source_entry_path: packs
63
+ public_root_path: public
64
+ public_output_path: packs
65
+ cache_path: tmp/cache/webpacker
66
+ check_yarn_integrity: false ここでエラー
67
+ webpack_compile_output: true
68
+
69
+ # Additional paths webpack should lookup modules
70
+ # ['app/assets', 'engine/foo/app/assets']
71
+ resolved_paths: []
72
+
73
+ # Reload manifest.json on all requests so we reload latest compiled packs
74
+ cache_manifest: false
75
+
76
+ # Extract and emit a css file
77
+ extract_css: false
78
+
79
+ static_assets_extensions:
80
+ - .jpg
81
+ - .jpeg
82
+ - .png
83
+ - .gif
84
+ - .tiff
85
+ - .ico
86
+ - .svg
87
+ - .eot
88
+ - .otf
89
+ - .ttf
90
+ - .woff
91
+ - .woff2
92
+
93
+ extensions:
94
+ - .mjs
95
+ - .js
96
+ - .sass
97
+ - .scss
98
+ - .css
99
+ - .module.sass
100
+ - .module.scss
101
+ - .module.css
102
+ - .png
103
+ - .svg
104
+ - .gif
105
+ - .jpeg
106
+ - .jpg
107
+
108
+ development:
109
+ <<: *default
110
+ compile: true
111
+
112
+ # Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules
113
+ check_yarn_integrity: true
114
+
115
+ # Reference: https://webpack.js.org/configuration/dev-server/
116
+ dev_server:
117
+ https: false
118
+ host: localhost
119
+ port: 3035
120
+ public: localhost:3035
121
+ hmr: false
122
+ # Inline should be set to true if using HMR
123
+ inline: true
124
+ overlay: true
125
+ compress: true
126
+ disable_host_check: true
127
+ use_local_ip: false
128
+ quiet: false
129
+ pretty: false
130
+ headers:
131
+ 'Access-Control-Allow-Origin': '*'
132
+ watch_options:
133
+ ignored: '**/node_modules/**'
134
+
135
+
136
+ test:
137
+ <<: *default
138
+ compile: true
139
+
140
+ # Compile test packs to a separate directory
141
+ public_output_path: packs-test
142
+
143
+ production:
144
+ <<: *default
145
+
146
+ # Production depends on precompilation of packs prior to booting for performance.
147
+ compile: false
148
+
149
+ # Extract and emit a css file
150
+ extract_css: true
151
+
152
+ # Cache manifest.json for performance
153
+ cache_manifest: true
154
+
155
+
156
+ ```
157
+
158
+
159
+ ```
160
+ web_1 | => Booting Puma
161
+ web_1 | => Rails 6.0.3.2 application starting in development
162
+ web_1 | => Run `rails server --help` for more startup options
163
+ web_1 | sh: 1: yarn: not found
164
+ web_1 |
165
+ web_1 |
166
+ web_1 | ========================================
167
+ web_1 | Your Yarn packages are out of date!
168
+ web_1 | Please run `yarn install --check-files` to update.
169
+ web_1 | ========================================
170
+ web_1 |
171
+ web_1 |
172
+ web_1 | To disable this check, please change `check_yarn_integrity`
173
+ web_1 | to `false` in your webpacker config file (config/webpacker.yml).
174
+ web_1 |
175
+ web_1 |
176
+ web_1 |
177
+ web_1 |
178
+ web_1 |
179
+ web_1 | Exiting
180
+ books_web_1 exited with code 1
52
181
  ```