Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-requirejs-builder

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-requirejs-builder

grunt task for assisting requirejs optimizer builds

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Example config:

    options: {
        src: ['public/javascripts/**/*.js'],
        appDir: 'public',
        baseUrl: '_build',
        mainConfigFile: 'javascripts/require-config.js',
        requireLib: '../components/requirejs/require.js',
        
        ... and other requirejs optimizer config options
    },
    dev: {
        build: false,
        generateSourceMaps: false,
        optimize: 'none'
    },
    production: {
        build: 'public/dist',
        common: 3,
        optimize: 'uglify2',
        // optimize: 'none',
        generateSourceMaps: true,
        preserveLicenseComments: false,
        paths: {
        	...specific requirejs optimizer path overrides
        },
        overrides: {
            <specific app name>: {
                wrapShim: true
            }
        }
    }

src, mainConfigFile, requireLib, build, common, and overrides keys are special. everything else are standard requirejs optimizer options: http://requirejs.org/docs/optimization.html

Keywords

FAQs

Package last updated on 08 Jul 2014

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc