This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
MIT License http://www.opensource.org/licenses/mit-license.php | |
Author Tobias Koppers @sokra | |
*/ | |
var RawSource = require("./RawSource"); | |
var OriginalSource = require("./OriginalSource"); | |
var path = require("path"); // TODO refactor | |
var ModuleBuildError = require("./ModuleBuildError"); | |
var ModuleError = require("./ModuleError"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _ = require("lodash"); | |
function testPlugin(options) { | |
var defaults = { | |
fileExtensionRegEx: '\.(js|html)$' | |
}; | |
this.options = _.merge({}, defaults, options || {}); | |
} | |
testPlugin.prototype.apply = function (compiler) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _ = require("lodash"); | |
var fs = require("fs"); | |
var OriginalSource = require('webpack-core/lib/OriginalSource'); | |
function testPlugin(options) { | |
var defaults = { | |
fileExtensionRegEx: '\.(js|html)$' | |
}; | |
this.options = _.merge({}, defaults, options || {}); | |
} |