@node-sitecore/config-browserify

3.12.1 • Public • Published

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"
  ],
}

Readme

Keywords

none

Package Sidebar

Install

npm i @node-sitecore/config-browserify

Weekly Downloads

1

Version

3.12.1

License

none

Unpacked Size

2.88 kB

Total Files

3

Last publish

Collaborators

  • romakita
  • timbenniks