From 0acd4fc9a15977033c4ccd40527b70cb06f18192 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Thu, 10 Jun 2021 14:20:30 +0100 Subject: [PATCH] Change Webpacker default path name In the current version of Webpacker all assets are kept under a new path called `app/javascript`. This is a really stupid name, as it can contain all kinds of assets that are *not* javascript at all, like SCSS. It's common practise to rename this to something sensible like `app/webpacker` or `app/frontend`... --- app/{javascript => webpacker}/packs/application.js | 0 config/webpacker.yml | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename app/{javascript => webpacker}/packs/application.js (100%) diff --git a/app/javascript/packs/application.js b/app/webpacker/packs/application.js similarity index 100% rename from app/javascript/packs/application.js rename to app/webpacker/packs/application.js diff --git a/config/webpacker.yml b/config/webpacker.yml index a6b146566a..f966a6ac93 100644 --- a/config/webpacker.yml +++ b/config/webpacker.yml @@ -1,7 +1,7 @@ # Note: You must restart bin/webpack-dev-server for changes to take effect default: &default - source_path: app/javascript + source_path: app/webpacker source_entry_path: packs public_root_path: public public_output_path: packs