Skip to content

Commit 7b8d6f3

Browse files
Merge pull request #126 from pinzonjulian/add-postcss-import
Add PostCSS import plugin as default
2 parents bad2abc + 14df836 commit 7b8d6f3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/install/postcss/install.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
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-nesting autoprefixer"
4+
run "yarn add postcss postcss-cli postcss-import postcss-nesting autoprefixer"
55

66
say "Add build:css script"
77
build_script = "postcss ./app/assets/stylesheets/application.postcss.css -o ./app/assets/builds/application.css"

lib/install/postcss/postcss.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = {
22
plugins: [
3+
require('postcss-import'),
34
require('postcss-nesting'),
45
require('autoprefixer'),
56
],

0 commit comments

Comments
 (0)