Sha256: 798d7bf9c82d677b53bb60cd8afa8a4f68559b92add2a5eba3092f699720a715

Contents?: true

Size: 514 Bytes

Versions: 4

Compression:

Stored size: 514 Bytes

Contents

require_relative "../helpers"
self.extend Helpers

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 "#{bundler_cmd} add postcss postcss-cli postcss-import postcss-nesting autoprefixer"

say "Add build:css script"
add_package_json_script "build:css",
  "postcss ./app/assets/stylesheets/application.postcss.css -o ./app/assets/builds/application.css"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cssbundling-rails-1.3.3 lib/install/postcss/install.rb
cssbundling-rails-1.3.2 lib/install/postcss/install.rb
cssbundling-rails-1.3.1 lib/install/postcss/install.rb
cssbundling-rails-1.3.0 lib/install/postcss/install.rb