File tree 4 files changed +593
-632
lines changed
4 files changed +593
-632
lines changed Original file line number Diff line number Diff line change 1
- @import 'helpers /unstyled.css' ;
2
- @import 'helpers /embed.css' ;
3
- @import 'helpers /flex.css' ;
4
- @import 'helpers /margin.css' ;
5
- @import 'helpers /padding.css' ;
6
- @import 'helpers /rounded.css' ;
1
+ @import '. /unstyled.css' ;
2
+ @import '. /embed.css' ;
3
+ @import '. /flex.css' ;
4
+ @import '. /margin.css' ;
5
+ @import '. /padding.css' ;
6
+ @import '. /rounded.css' ;
7
7
8
8
.img-fluid {
9
9
width : 100% ;
Original file line number Diff line number Diff line change 2
2
'use strict' ;
3
3
const Funnel = require ( 'broccoli-funnel' ) ;
4
4
const path = require ( 'path' ) ;
5
- const staticPostcssAddonTree = require ( 'static-postcss-addon-tree' ) ;
5
+ const CssImport = require ( 'postcss-import' )
6
+ const PresetEnv = require ( 'postcss-preset-env' ) ;
7
+
8
+ const plugins = [
9
+ { module : CssImport } ,
10
+ {
11
+ module : PresetEnv ,
12
+ options : {
13
+ stage : 3 ,
14
+ features : { 'nesting-rules' : true } ,
15
+ }
16
+ }
17
+ ] ;
6
18
7
19
module . exports = {
8
20
name : require ( './package' ) . name ,
9
21
10
- options : { } ,
11
-
12
- treeForAddon ( ) {
13
- var tree = this . _super ( ...arguments ) ;
22
+ options : {
23
+ postcssOptions : {
24
+ compile : {
25
+ enabled : true ,
26
+ plugins,
27
+ }
28
+ }
29
+ } ,
14
30
15
- return staticPostcssAddonTree ( tree , {
16
- addonName : 'ember-styleguide' ,
17
- addonFolder : __dirname ,
18
- project : this . project || this . app . project
19
- } ) ;
31
+ included : function ( app ) {
32
+ this . _super . included . apply ( this , arguments ) ;
33
+ app . options = app . options || { } ;
34
+ app . options . postcssOptions = {
35
+ compile : {
36
+ enabled : true ,
37
+ plugins,
38
+ }
39
+ }
20
40
} ,
21
41
22
42
treeForPublic : function ( ) {
You can’t perform that action at this time.
0 commit comments