Logo
Explore Help
Register Sign In
yujunjun/knex
1
0
Fork 0
You've already forked knex
mirror of https://github.com/knex/knex.git synced 2025-07-06 16:41:22 +00:00
Code Issues Packages Projects Releases Wiki Activity
knex/scripts/webpack.config.js

37 lines
508 B
JavaScript
Raw Normal View History

Update process for web script build
2015-04-29 17:11:52 -04:00
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'
},
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
module: {
loaders: [{
test: /\.json$/, loader: 'json-loader'
}]
},
Update process for web script build
2015-04-29 17:11:52 -04:00
externals: externals,
plugins: plugins
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
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 111ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API