Socket
Book a DemoInstallSign in
Socket

gobble-webpack

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gobble-webpack

Bundle javascript modules with webpack 1.13.2 in your GobbleJS workflow

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

gobble-webpack

Bundle javascript modules with webpack in your GobbleJS workflow.

Yeah, you can already use gobble-browserify and gobble-rollup to bundle up your files. But if you need the webpack flavour, this is the tool to use.

Installation

I assume you already know the basics of Gobble.

npm i -D gobble-webpack

Usage

In your gobblefile, run the webpack gobble transform, specifying at least the entry option, like so:

var gobble = require( 'gobble' );
module.exports = gobble( directory_with_a_javascript_package )
	.transform( 'webpack', {entry: './index.js'} );

The options passed to this gobble transform can be those in a webpack config object. Just make sure to omit the context directory and the output path, as these are handled by gobble.

Aditionally, a sourceMap option is available. This is just a shorthand for a sensible way to make gobble-compatible sourcemaps. The following:

gobble( somewhere ).transform( 'webpack', {
	entry: './index.js',
	sourceMap: true
} );

is equivalent to:

gobble( somewhere ).transform( 'webpack', {
	entry: './index.js',
	output: {
		sourceMapFilename: '[file].map',
		devtool: 'source-map'
	}
} );

License

"THE BEER-WARE LICENSE":
<ivan@sanchezortega.es> wrote this file. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return.

Keywords

gobble

FAQs

Package last updated on 10 Oct 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