Skip to content

Commit

Permalink
use more standard postcss process
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jul 18, 2024
1 parent c6bc82e commit fb4b4f2
Show file tree
Hide file tree
Showing 4 changed files with 578 additions and 633 deletions.
12 changes: 6 additions & 6 deletions addon/styles/helpers/index.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@import 'helpers/unstyled.css';
@import 'helpers/embed.css';
@import 'helpers/flex.css';
@import 'helpers/margin.css';
@import 'helpers/padding.css';
@import 'helpers/rounded.css';
@import './unstyled.css';
@import './embed.css';
@import './flex.css';
@import './margin.css';
@import './padding.css';
@import './rounded.css';

.img-fluid {
width: 100%;
Expand Down
26 changes: 15 additions & 11 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@
'use strict';
const Funnel = require('broccoli-funnel');
const path = require('path');
const staticPostcssAddonTree = require('static-postcss-addon-tree');
const CssImport = require('postcss-import')
const PresetEnv = require('postcss-preset-env');

module.exports = {
name: require('./package').name,

options: {},

treeForAddon() {
var tree = this._super(...arguments);

return staticPostcssAddonTree(tree, {
addonName: 'ember-styleguide',
addonFolder: __dirname,
project: this.project || this.app.project
});
options: {
postcssOptions: {
compile: {
enabled: true,
plugins: [
{ module: CssImport },
{
module: PresetEnv,
options: { stage: 3 }
}
]
}
}
},

treeForPublic: function() {
Expand Down
Loading

0 comments on commit fb4b4f2

Please sign in to comment.