Sha256: 18d1ed73f886da750b1870136509b82e918cf1873f82d558b5ce63d3c7c4d701

Contents?: true

Size: 464 Bytes

Versions: 22

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

default_postcss_config = File.expand_path("../../../site_template/postcss.config.js.erb", __dir__)

template default_postcss_config, "postcss.config.js"
template "webpack.defaults.js.erb", "config/webpack.defaults.js", force: true

unless Bridgetown.environment.test?
  packages = %w(postcss postcss-loader postcss-flexbugs-fixes postcss-preset-env)
  run "yarn add -D #{packages.join(" ")}"
  run "yarn remove sass sass-loader"
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
bridgetown-core-1.3.4 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.3.3 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.3.2 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.3.1 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.3.0 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.3.0.beta3 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.3.0.beta2 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.3.0.beta1 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.2.0 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.2.0.beta5 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.2.0.beta4 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.2.0.beta3 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.2.0.beta2 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.2.0.beta1 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.1.0 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.1.0.beta3 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.1.0.beta2 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.1.0.beta1 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.0.0 lib/bridgetown-core/commands/webpack/enable-postcss.rb
bridgetown-core-1.0.0.beta3 lib/bridgetown-core/commands/webpack/enable-postcss.rb