File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
- say "Install PostCSS w/ postcss-preset-env "
1
+ say "Install PostCSS w/ nesting and autoprefixer "
2
2
copy_file "#{ __dir__ } /postcss.config.js" , "postcss.config.js"
3
3
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 "
5
5
6
6
say "Add build:css script"
7
7
run %(npm set-script build:css "postcss ./app/assets/stylesheets/application.postcss.css -o ./app/assets/builds/application.css")
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
plugins : [
3
- require ( 'postcss-preset-env' ) ( {
4
- stage : 2 ,
5
- features : {
6
- 'nesting-rules' : true
7
- }
8
- } )
3
+ require ( 'postcss-nesting' ) ,
4
+ require ( 'autoprefixer' ) ,
9
5
] ,
10
6
}
You can’t perform that action at this time.
0 commit comments