🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

modern-enb

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modern-enb

Modern set of enb technologies for the common tasks

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

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

Keywords

enb

FAQs

Package last updated on 26 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts