Replace copyright headers; changes UMD to CommonJS.

This commit is contained in:
Yury Delendik 2017-02-08 16:35:58 -06:00
parent eb4c88cd44
commit a048519fa1
5 changed files with 116 additions and 1 deletions

View file

@ -90,10 +90,12 @@ function createWebpackConfig(defines, output) {
BUNDLE_VERSION: versionInfo.version,
BUNDLE_BUILD: versionInfo.commit
});
var licenseHeader = fs.readFileSync('./src/license_header.js').toString();
return {
output: output,
plugins: [
new webpack2.BannerPlugin({banner: licenseHeader, raw: true}),
new BlockRequirePlugin()
],
resolve: {
@ -108,7 +110,7 @@ function createWebpackConfig(defines, output) {
loader: path.join(__dirname, 'external/webpack/pdfjsdev-loader.js'),
options: {
rootPath: __dirname,
saveComments: 'copyright',
saveComments: false,
defines: bundleDefines
}
}