From bccd4babb7c883a78e28ce6893f51fa83f9b6630 Mon Sep 17 00:00:00 2001 From: Andrew Mason Date: Sat, 19 Sep 2020 06:07:46 -0400 Subject: [PATCH] feat: add init --- app/javascript/init/index.js | 1 + app/javascript/init/index.pcss | 5 +++++ app/javascript/packs/application.js | 5 +---- app/javascript/packs/application.pcss | 4 ---- 4 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 app/javascript/init/index.js create mode 100644 app/javascript/init/index.pcss delete mode 100644 app/javascript/packs/application.pcss diff --git a/app/javascript/init/index.js b/app/javascript/init/index.js new file mode 100644 index 0000000..4df1b8b --- /dev/null +++ b/app/javascript/init/index.js @@ -0,0 +1 @@ +import "./index.pcss"; diff --git a/app/javascript/init/index.pcss b/app/javascript/init/index.pcss new file mode 100644 index 0000000..9d21670 --- /dev/null +++ b/app/javascript/init/index.pcss @@ -0,0 +1,5 @@ +body { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 16px; + line-height: 24px; +} diff --git a/app/javascript/packs/application.js b/app/javascript/packs/application.js index af1cbea..a565503 100644 --- a/app/javascript/packs/application.js +++ b/app/javascript/packs/application.js @@ -9,7 +9,4 @@ // // const images = require.context('../images', true) // const imagePath = (name) => images(name, true) - -import "./application.pcss"; - -document.body.insertAdjacentHTML("afterbegin", "Webpacker works!"); +import "init"; diff --git a/app/javascript/packs/application.pcss b/app/javascript/packs/application.pcss deleted file mode 100644 index 27da6d0..0000000 --- a/app/javascript/packs/application.pcss +++ /dev/null @@ -1,4 +0,0 @@ -html, -body { - background: lightyellow; -}