Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jul 18, 2024
1 parent 118723f commit ec5a033
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,36 @@ const path = require('path');
const CssImport = require('postcss-import')
const PresetEnv = require('postcss-preset-env');

const plugins = [
{ module: CssImport },
{
module: PresetEnv,
options: {
stage: 3,
features: { 'nesting-rules': true },
}
}
];

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

options: {
postcssOptions: {
compile: {
enabled: true,
plugins: [
{ module: CssImport },
{
module: PresetEnv,
options: {
stage: 3,
features: { 'nesting-rules': true },
}
}
]
plugins,
}
}
},

included: function(app) {
this._super.included.apply(this, arguments);
app.options = app.options || {};
app.options.postcssOptions = {
compile: {
enabled: true,
plugins,
}
}
},
Expand Down

0 comments on commit ec5a033

Please sign in to comment.