modern-enb

0.0.3 • Public • Published

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

/modern-enb/

    Package Sidebar

    Install

    npm i modern-enb

    Weekly Downloads

    1

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • sullenor