mirror of
https://github.com/knex/knex.git
synced 2025-10-03 20:15:33 +00:00
31 lines
473 B
JavaScript
31 lines
473 B
JavaScript
var webpack = require('webpack');
|
|
|
|
var externals = [{
|
|
"bluebird": {
|
|
root: "Promise",
|
|
commonjs2: "bluebird",
|
|
commonjs: "bluebird",
|
|
amd: "bluebird"
|
|
},
|
|
"lodash": {
|
|
root: "_",
|
|
commonjs2: "lodash",
|
|
commonjs: "lodash",
|
|
amd: "lodash"
|
|
}
|
|
}]
|
|
|
|
module.exports = {
|
|
|
|
output: {
|
|
library: 'Knex',
|
|
libraryTarget: 'umd',
|
|
path: __dirname + "/assets/",
|
|
filename: "knex.js"
|
|
},
|
|
|
|
entry: "./assets/index.js",
|
|
|
|
externals: externals
|
|
|
|
}; |