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:
parent
0d0ab77db7
commit
5187fcdb80
|
@ -4,6 +4,7 @@
|
|||
[
|
||||
"css-modules-transform", {
|
||||
"extensions": [".css", ".sass"],
|
||||
"append": [ "postcss-cssnext" ],
|
||||
"extractCss": "./static/css/bundle.css",
|
||||
"preprocessCss": "./pre-processor.js"
|
||||
}
|
||||
|
|
3
examples/with-external-scoped-css/global.sass
Normal file
3
examples/with-external-scoped-css/global.sass
Normal file
|
@ -0,0 +1,3 @@
|
|||
@mixin opacity($opacity)
|
||||
opacity: $opacity
|
||||
filter: alpha(opacity=($opacity * 100))
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
@import "../global"
|
||||
|
||||
.example
|
||||
@include opacity(0.5)
|
||||
font-size: 36px
|
||||
width: 300px
|
||||
margin: 100px auto
|
||||
display: flex
|
||||
|
|
Loading…
Reference in a new issue