knex/scripts/webpack.config.js
Rhys van der Waerden f320906577 Read version from package.json
Means that it's impossible to have `Knex#VERSION` and the version in `package.json` out of sync. This is one less thing to do for release.

This required the addition of `json-loader` for webpack. I've also added webpack to `devDependencies` rather than installing it manually during the `build` script.
2016-05-15 21:38:34 +10:00

37 lines
508 B
JavaScript

var webpack = require('webpack');
var plugins = []
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'
},
module: {
loaders: [{
test: /\.json$/, loader: 'json-loader'
}]
},
externals: externals,
plugins: plugins
};