github-release-info-downloader
Version:
Gets latest release download URL using the GitHub Releases API. It also shows when it was released and the download count.
33 lines (32 loc) • 659 B
JavaScript
const webpack = require('webpack');
var DIST = __dirname + '/dist';
var FILE = 'ghReleaseInfo';
module.exports = {
// entry: {
// index: ['babel-polyfill', './src/index.js']
// // ghReleaseInfo: ['babel-polyfill', './src/'+FILE]
// },
output: {
library: FILE,
libraryTarget: 'umd',
path: DIST,
filename: FILE+'.min.js'
},
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
})
],
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: "babel-loader"
}
}
]
},
cache: true
};