You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
572 B
JavaScript

var path = require("path");
var webpack = require("webpack");
module.exports = {
entry: "./src/long.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "long.js",
library: "Long",
libraryTarget: "umd"
},
plugins: [
new webpack.optimize.UglifyJsPlugin({ sourceMap: true })
],
devtool: "source-map"
};
// Also update bower.json
var bower = require("./bower.json");
var pkg = require("./package.json");
bower.version = pkg.version;
require("fs").writeFileSync(path.join(__dirname, "bower.json"), JSON.stringify(bower, null, 4));