@node-sitecore/config-browserify

Plugin to configure Sitecore with Browserify stack.

Stats

StarsIssuesVersionUpdatedCreatedSize
@node-sitecore/config-browserify
3.12.13 years ago3 years agoMinified + gzip package size for @node-sitecore/config-browserify in KB

Readme

NodeSitecore/config-browserify

Add support configuration for browserify stack.

Installation

$ npm install @node-sitecore/config-browserify

Getters

Configuration fields

Key Default value Tags Description
bundle {...} Browserify, Vue Bundle keys configuration for browserify stack.
directories {...} Browserify, Vue Directories mapping for gulp task.
autoPrefixerBrowsers [...] Browserify, Vue Autoprefixer configuration for gulp task.

Bundle

In your .nscrc file:

{
   "cssBundleName": "bundle.css",
   "jsBundleName": "bundle.js",
   "jsMapName": "bundle.map.js"
}

Usage in javascript file:

const config = require('@node/sitecore-config');

console.log(config.bundle); // display

Directories

Directories is a mapping between your .nscrc configuration and the legacy javascript configuration for a Sitecore project.

const config = require('@node/sitecore-config');

console.log(config.directories);

Autoprefixer

In your .nscrc file:

{
  "autoPrefixerBrowsers": [
    "last 2 versions",
    "ie >= 10",
    "Safari >= 9",
    "iOS >= 8"
  ],
}

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.