Skip to content

Commit

Permalink
[#385] Update name for the base stylesheet options
Browse files Browse the repository at this point in the history
  • Loading branch information
sanG-github committed Jun 21, 2023
1 parent 9cc72f7 commit be10c45
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .template/variants/web/Procfile.dev.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
append_to_file 'Procfile.dev' do
<<~PROCFILE
js: yarn build --watch
css: yarn build:css-dev --watch
css: yarn build:css --watch
postcss: yarn build:postcss --watch
PROCFILE
end
12 changes: 6 additions & 6 deletions .template/variants/web/package.json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,22 @@

source_stylesheet = 'app/assets/stylesheets/application.scss'
bundled_stylesheet = 'app/assets/builds/application.css'
bundled_stylesheet_options = [
bundled_stylesheet_base_options = [
'--no-source-map',
'--load-path=node_modules'
]
production_bundled_stylesheet_options = [
production_bundled_stylesheet_options = bundled_stylesheet_base_options + [
'--style=compressed'
]

run %(npm set-script build "node app/javascript/build.js")
run %(
npm set-script build:css \
"sass #{source_stylesheet} #{bundled_stylesheet} #{(bundled_stylesheet_options + production_bundled_stylesheet_options).join(' ')}"
npm set-script build:css-production \
"sass #{source_stylesheet} #{bundled_stylesheet} #{(production_bundled_stylesheet_options).join(' ')}"
)
run %(
npm set-script build:css-dev \
"sass #{source_stylesheet} #{bundled_stylesheet} #{bundled_stylesheet_options.join(' ')}"
npm set-script build:css \
"sass #{source_stylesheet} #{bundled_stylesheet} #{bundled_stylesheet_base_options.join(' ')}"
)
run %(npm set-script postcss "postcss public/assets/*.css --dir public/assets --config ./")
run %(
Expand Down

0 comments on commit be10c45

Please sign in to comment.