Skip to content

Commit abecbb4

Browse files
authored
Replace postcss-preset-env (#30)
1 parent d084a0c commit abecbb4

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

lib/install/postcss/install.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
say "Install PostCSS w/ postcss-preset-env"
1+
say "Install PostCSS w/ nesting and autoprefixer"
22
copy_file "#{__dir__}/postcss.config.js", "postcss.config.js"
33
copy_file "#{__dir__}/application.postcss.css", "app/assets/stylesheets/application.postcss.css"
4-
run "yarn add postcss postcss-cli postcss-preset-env"
4+
run "yarn add postcss postcss-cli postcss-nesting autoprefixer"
55

66
say "Add build:css script"
77
run %(npm set-script build:css "postcss ./app/assets/stylesheets/application.postcss.css -o ./app/assets/builds/application.css")

lib/install/postcss/postcss.config.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
module.exports = {
22
plugins: [
3-
require('postcss-preset-env')({
4-
stage: 2,
5-
features: {
6-
'nesting-rules': true
7-
}
8-
})
3+
require('postcss-nesting'),
4+
require('autoprefixer'),
95
],
106
}

0 commit comments

Comments
 (0)