2016-05-31 20:10:00 +03:00
|
|
|
"use strict";
|
|
|
|
const webpack = require("webpack");
|
|
|
|
const absolute = (relPath) => require("path").join(__dirname, relPath);
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: {
|
2016-06-27 19:16:06 +03:00
|
|
|
"vendor": absolute("lib/vendor-src.js")
|
2016-05-31 20:10:00 +03:00
|
|
|
},
|
|
|
|
output: {
|
|
|
|
path: absolute("lib"),
|
|
|
|
filename: "vendor.bundle.js"
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
loaders: [{test: /\.json$/, loader: "json"}]
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new webpack.BannerPlugin("const platform_require = require; let platform_exports = exports;\n", {raw: true})
|
|
|
|
]
|
|
|
|
};
|