1"use strict"; 2 3const webpack = require("webpack"); 4const fs = require("fs"); 5 6module.exports = function (env) { 7 8 let externals = []; 9 10 if (env && env.noDeps) { 11 console.log('Building version without deps'); 12 externals.push("eve"); 13 } 14 15 return { 16 entry: './dev/raphael.amd.js', 17 output: { 18 path: __dirname, 19 filename: "raphael.js", 20 libraryTarget: "umd", 21 library: "Raphael" 22 }, 23 24 externals: externals, 25 26 plugins: [ 27 new webpack.BannerPlugin({ 28 banner: fs.readFileSync('./dev/banner.txt', 'utf8'), 29 raw: true, 30 entryOnly: true 31 }) 32 ], 33 resolve: { 34 alias: { 35 "eve": "eve-raphael/eve" 36 } 37 } 38 }; 39 40};