asset-module-webpack-plugin
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,4 +0,1 @@ | ||
/** | ||
* @flow | ||
*/ | ||
'use strict'; | ||
@@ -49,5 +46,6 @@ | ||
})).then(function (result) { | ||
return callback(null, result); | ||
callback(null, result); | ||
}, function (error) { | ||
return callback(error); | ||
console.warn(error.stack); | ||
callback(error); | ||
}); | ||
@@ -97,5 +95,3 @@ }); | ||
_getAssetModuleSource(compilation, module) { | ||
var _options2 = this.options; | ||
var sourceBase = _options2.sourceBase; | ||
var destinationBase = _options2.destinationBase; | ||
var sourceBase = this.options.sourceBase; | ||
var resource = module.resource; | ||
@@ -154,6 +150,6 @@ var assets = module.assets; | ||
_shouldEmit(module) { | ||
var _options3 = this.options; | ||
var test = _options3.test; | ||
var include = _options3.include; | ||
var exclude = _options3.exclude; | ||
var _options2 = this.options; | ||
var test = _options2.test; | ||
var include = _options2.include; | ||
var exclude = _options2.exclude; | ||
var resource = module.resource; | ||
@@ -160,0 +156,0 @@ |
{ | ||
"name": "asset-module-webpack-plugin", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A webpack plugin that emits JS modules for your assets such as images. This allows Node to load the modules that webpack generated for your assets without having to run webpack's bundle on the server.", | ||
@@ -29,5 +29,5 @@ "main": "lib/AssetModulePlugin.js", | ||
"devDependencies": { | ||
"babel": "^5.5.6", | ||
"babel-eslint": "^3.1.14", | ||
"eslint": "^0.22.1" | ||
"babel": "^5.8.21", | ||
"babel-eslint": "^4.0.10", | ||
"eslint": "^1.2.1" | ||
}, | ||
@@ -34,0 +34,0 @@ "dependencies": { |
@@ -136,3 +136,3 @@ /** | ||
_getAssetModuleSource(compilation: any, module: any) { | ||
var { sourceBase, destinationBase } = this.options; | ||
var { sourceBase } = this.options; | ||
var { resource, assets } = module; | ||
@@ -139,0 +139,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
25129
387