1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

add postcss after sass compilation to with-external-scoped-css example (#1640)

* add postcss after sass compilation

* Fix indent

* Fixed mixed tab indent with spaces
This commit is contained in:
Victor Nahuel Chaves 2017-05-27 09:18:50 -03:00 committed by Tim Neutkens
parent 0d0ab77db7
commit 5187fcdb80
4 changed files with 11 additions and 2 deletions

View file

@ -4,6 +4,7 @@
[
"css-modules-transform", {
"extensions": [".css", ".sass"],
"append": [ "postcss-cssnext" ],
"extractCss": "./static/css/bundle.css",
"preprocessCss": "./pre-processor.js"
}

View file

@ -0,0 +1,3 @@
@mixin opacity($opacity)
opacity: $opacity
filter: alpha(opacity=($opacity * 100))

View file

@ -16,6 +16,8 @@
},
"devDependencies": {
"babel-plugin-css-modules-transform": "^1.2.1",
"node-sass": "^4.5.0"
"node-sass": "^4.5.0",
"postcss": "^5.2.16",
"postcss-cssnext": "^2.10.0"
}
}

View file

@ -1,4 +1,7 @@
@import "../global"
.example
@include opacity(0.5)
font-size: 36px
width: 300px
margin: 100px auto
display: flex