modern-enb
Modern set of enb technologies for the common tasks.
A small attempt of mine to build modern and stable enb technologies. Also it's a small desire to integrate well known solutions like postcss to the unknown enb.
Technologies
css
Internally built on top of postcss. Also uses postcss-import and postcss-url to concat files and resolve urls.
module.exports = function (config) {
config.node('pages/index', function (nodeConfig) {
nodeConfig.addTargets([
'?.css',
]);
nodeConfig.addTechs([
[require('enb/techs/file-provider'), {target: '?.bemdecl.js'}],
[require('enb-bem-techs/techs/levels'), {levels: []}],
require('enb-bem-techs/techs/deps-old'),
require('enb-bem-techs/techs/files'),
]);
nodeConfig.addTechs([
[require('modern-enb/techs/css'), {
autoprefixer: {
browsers: ['last 2 versions'],
},
url: {
filter: /\.svg$/,
url: 'inline',
},
}],
]);
});
};
Arguments:
License
The MIT License