diff --git a/Gemfile b/Gemfile index 2ece804f..6d275357 100644 --- a/Gemfile +++ b/Gemfile @@ -14,7 +14,6 @@ gem 'pg' # Use Puma as the app server gem "puma", ">= 5.5.2" -# Use SCSS for stylesheets # Use Uglifier as compressor for JavaScript assets gem 'uglifier', '>= 1.3.0' # See https://github.com/rails/execjs#readme for more supported runtimes diff --git a/Gemfile.lock b/Gemfile.lock index 3e8e49a4..9a8068c1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -150,8 +150,6 @@ GEM nested_scaffold (1.1.0) newrelic_rpm (8.0.0) nio4r (2.5.8) - nokogiri (1.12.5-x86_64-darwin) - racc (~> 1.4) nokogiri (1.12.5-x86_64-linux) racc (~> 1.4) omniauth (2.0.4) @@ -163,7 +161,7 @@ GEM public_suffix (4.0.6) puma (5.5.2) nio4r (~> 2.0) - racc (1.5.2) + racc (1.6.0) rack (2.2.3) rack-protection (2.1.0) rack @@ -265,10 +263,9 @@ GEM websocket-extensions (0.1.5) xpath (3.2.0) nokogiri (~> 1.8) - zeitwerk (2.4.2) + zeitwerk (2.5.1) PLATFORMS - x86_64-darwin-20 x86_64-linux DEPENDENCIES diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js index d333340b..57b152e8 100644 --- a/app/assets/config/manifest.js +++ b/app/assets/config/manifest.js @@ -1,4 +1,3 @@ //= link_tree ../images //= link_directory ../javascripts .js -//= link_directory ../stylesheets .css //= link_tree ../builds diff --git a/package.json b/package.json index 36088e61..c2a344b1 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "scripts": { "build": "esbuild app/javascript/*.* --bundle --outdir=app/assets/builds", "test": "jest", - "build:css": "sass ./app/assets/stylesheets/application.bootstrap.scss ./app/assets/builds/application.css --no-source-map --load-path=node_modules --watch & sass ./app/assets/stylesheets/sqm_application.scss ./app/assets/builds/sqm_application.css --no-source-map --load-path=node_modules --watch & sass ./app/assets/stylesheets/welcome.scss ./app/assets/builds/welcome.css --no-source-map --load-path=node_modules" + "build:css": "sass ./app/assets/stylesheets/application.bootstrap.scss ./app/assets/builds/application.css --no-source-map --load-path=node_modules & sass ./app/assets/stylesheets/sqm_application.scss ./app/assets/builds/sqm_application.css --no-source-map --load-path=node_modules & sass ./app/assets/stylesheets/welcome.scss ./app/assets/builds/welcome.css --no-source-map --load-path=node_modules" }, "devDependencies": { "jest": "^27.2.5" diff --git a/scripts/bundling.sh b/scripts/bundling.sh index bafeb70c..6845ba45 100755 --- a/scripts/bundling.sh +++ b/scripts/bundling.sh @@ -2,4 +2,4 @@ set -eux -yarn build --watch & yarn build:css --watch +yarn sass ./app/assets/stylesheets/application.bootstrap.scss ./app/assets/builds/application.css --no-source-map --load-path=node_modules --watch & yarn sass ./app/assets/stylesheets/sqm_application.scss ./app/assets/builds/sqm_application.css --no-source-map --load-path=node_modules --watch & npx sass ./app/assets/stylesheets/welcome.scss ./app/assets/builds/welcome.css --no-source-map --load-path=node_modules --watch & yarn build --watch