mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Added webpack build, karma test runner, travis config
This commit is contained in:
parent
5c49e4f4b6
commit
5e6c268e83
63 changed files with 15811 additions and 12986 deletions
31
webpack.config.js
Normal file
31
webpack.config.js
Normal file
|
@ -0,0 +1,31 @@
|
|||
var webpack = require("webpack");
|
||||
var path = require('path');
|
||||
var PROD = (process.env.NODE_ENV === 'production')
|
||||
var hostname = "localhost";
|
||||
var port = "8080";
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
epub: "./src/epub.js",
|
||||
},
|
||||
devtool: 'source-map',
|
||||
output: {
|
||||
path: path.resolve("./dist"),
|
||||
filename: "[name].js",
|
||||
sourceMapFilename: "[name].js.map",
|
||||
library: "ePub",
|
||||
libraryTarget: "umd"
|
||||
},
|
||||
externals: {
|
||||
"jszip": "JSZip",
|
||||
"xmldom": "xmldom"
|
||||
},
|
||||
plugins: [
|
||||
// new webpack.IgnorePlugin(/punycode|IPv6/),
|
||||
],
|
||||
devServer: {
|
||||
host: hostname,
|
||||
port: port,
|
||||
inline: true
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue