mirror of https://github.com/webpack/webpack.git
7 lines
252 B
JavaScript
7 lines
252 B
JavaScript
|
module.exports = function(contents, options, callback) {
|
||
|
var content = contents[0];
|
||
|
callback(null, "module.exports=" + stringify(content+"webpack"));
|
||
|
}
|
||
|
function stringify(str) {
|
||
|
return '"' + str.replace(/\\/g, "\\\\").replace(/\"/g, "\\\"") + '"';
|
||
|
}
|