Socket
Socket
Sign inDemoInstall

steal-bundler

Package Overview
Dependencies
18
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    steal-bundler

Bundle assets along with a steal project


Version published
Weekly downloads
1.3K
increased by34.37%
Maintainers
2
Install size
390 kB
Created
Weekly downloads
 

Readme

Source

Build Status npm version

steal-bundler

For StealTools projects, steal-bundler provides an easy way to bundle static assets along with your CSS and JavaScript, so that your dist folder can be sent to a CDN.

steal-bundler infers static assets from your project and copies them for you automatically (can be turned off if undesired).

Use

var stealTools = require("steal-tools");
var bundleAssets = require("steal-bundler");

stealTools.build){
	config: __dirname + "/package.json!npm"
}).then(function(buildResult){

	bundleAssets(buildResult, {
		glob: "images/**/*"
	});

});

API

bundleAssets(bundleResult, [options]) -> Promise

Calling require("steal-bundler") will return a function that when called will bundle assets and pack them into a destination folder.

buildResult

The BuildResult obtained from calling stealTools.build.

options

An optional object for specifying additional options. They are:

  • infer: By default steal-bundler will infer your static assets in your project by reading your CSS and JavaScript. Set this to false if you want to manually specify static assets.
  • glob: A string or array of strings, of minimatch globs specifying files to be copied.

License

MIT

Keywords

FAQs

Last updated on 11 Jan 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc