Socket
Book a DemoInstallSign in
Socket

gulp-requirerc

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-requirerc

Gulp adapter for RequireJS

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

gulp-requirerc

Gulp adapter for RequireJS

dependencies status devDependency status

Installation

from github:

npm i -D adriancmiranda/gulp-requirerc

from npmjs:

npm i -D gulp-requirerc

Usage

// Gulp adapter for RequireJS
// @see https://github.com/adriancmiranda/gulp-requirerc
var requirerc = require('gulp-requirerc');

// All configuration options.
// @see https://github.com/requirejs/r.js/blob/master/build/example.build.js
gulp.task('scripts', function(){
  return gulp.src('source/scripts/*.js').pipe(requirerc({
    baseUrl:'static/scripts',
    uglify2:{ warnings:true },
    optimize:'uglify2',
    generateSourceMaps:true,
    preview:true, // extra option
    outDir:'bundle', // extra option
    outSuffix:'.min' // extra option
  }));
});

Options

Type: Object

options.preview

Type: Boolean Default: true

options.outDir

Type: string Default: ''

options.suffix

Type: string Default: '.bundle'

License

MIT

Keywords

gulp

FAQs

Package last updated on 28 May 2016

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.