mirror of
https://github.com/knex/knex.git
synced 2025-07-24 17:31:01 +00:00

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.
37 lines
508 B
JavaScript
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
|
|
|
|
};
|