From 707a0baaca092b956475a8dc303a2629173fca16 Mon Sep 17 00:00:00 2001 From: Kenji Okimoto Date: Wed, 13 Mar 2019 11:28:28 +0900 Subject: [PATCH] Update config/webpacker.yml See https://github.com/rails/webpacker/blob/master/docs/v4-upgrade.md Signed-off-by: Kenji Okimoto --- config/webpacker.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/config/webpacker.yml b/config/webpacker.yml index c82f80f..e57e34c 100644 --- a/config/webpacker.yml +++ b/config/webpacker.yml @@ -5,6 +5,8 @@ default: &default source_entry_path: packs public_output_path: packs cache_path: tmp/cache/webpacker + check_yarn_integrity: false + webpack_compile_output: false # Additional paths webpack should lookup modules # ['app/assets', 'engine/foo/app/assets'] @@ -13,8 +15,26 @@ default: &default # Reload manifest.json on all requests so we reload latest compiled packs cache_manifest: false + # Extract and emit a css file + extract_css: false + + static_assets_extensions: + - .jpg + - .jpeg + - .png + - .gif + - .tiff + - .ico + - .svg + - .eot + - .otf + - .ttf + - .woff + - .woff2 + extensions: - .vue + - .mjs - .js - .sass - .scss @@ -49,7 +69,7 @@ development: headers: 'Access-Control-Allow-Origin': '*' watch_options: - ignored: /node_modules/ + ignored: '**/node_modules/**' test: @@ -65,5 +85,8 @@ production: # Production depends on precompilation of packs prior to booting for performance. compile: false + # Extract and emit a css file + extract_css: true + # Cache manifest.json for performance cache_manifest: true