added LICENSE.BSD

This commit is contained in:
sanex3339
2016-06-15 13:48:55 +03:00
parent 2dbaf3ea4f
commit 7f5812e9f2
4 changed files with 57 additions and 4 deletions
+11 -2
View File
@@ -1,6 +1,15 @@
var nodeExternals = require('webpack-node-externals'),
var fs = require("fs"),
nodeExternals = require('webpack-node-externals'),
webpack = require('webpack');
function getLicenseText () {
return `/*
Copyright (C) 2016 Timofey Kachalov <sanex3339@yandex.ru>
${fs.readFileSync('./LICENSE.BSD', 'utf8')}
*/`;
}
module.exports = {
entry: {
'index': './index.ts'
@@ -20,7 +29,7 @@ module.exports = {
plugins: [
new webpack.BannerPlugin(
{
banner: 'require("source-map-support").install();',
banner: `${getLicenseText()}\n\nrequire("source-map-support").install();\n`,
raw: true,
entryOnly: false
}