Sha256: d090babd0ba481b5fbbf13b6275dce59ef034fd4a51356449da882a1dc24b45f
Contents?: true
Size: 630 Bytes
Versions: 3
Compression:
Stored size: 630 Bytes
Contents
say "Install PostCSS w/ nesting and autoprefixer" copy_file "#{__dir__}/postcss.config.js", "postcss.config.js" copy_file "#{__dir__}/application.postcss.css", "app/assets/stylesheets/application.postcss.css" run "yarn add postcss postcss-cli postcss-nesting autoprefixer" say "Add build:css script" build_script = "postcss ./app/assets/stylesheets/application.postcss.css -o ./app/assets/builds/application.css" if (`npx -v`.to_f < 7.1 rescue "Missing") say %(Add "scripts": { "build:css": "#{build_script}" } to your package.json), :green else run %(npm set-script build:css "#{build_script}") run %(yarn build:css) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cssbundling-rails-1.0.0 | lib/install/postcss/install.rb |
cssbundling-rails-0.2.8 | lib/install/postcss/install.rb |
cssbundling-rails-0.2.7 | lib/install/postcss/install.rb |