Comparing version 1.7.15 to 1.7.16
{ | ||
"name": "flamebird", | ||
"version": "1.7.15", | ||
"version": "1.7.16", | ||
"description": "wonderful task manager for Procfile-based or npm-based applications", | ||
@@ -10,3 +10,3 @@ "main": "flamebird.js", | ||
"lint-js": "eslint .", | ||
"build-prod": "yarn webpack --config webpack.config.js", | ||
"build-prod": "node webpack.config.js", | ||
"postinstall": "yarn build-prod" | ||
@@ -13,0 +13,0 @@ }, |
@@ -0,1 +1,2 @@ | ||
const webpack = require('webpack') | ||
const fs = require('fs') | ||
@@ -20,23 +21,27 @@ const _ = require('lodash') | ||
} | ||
console.log( | ||
_.merge({}, getEntries('./lib/app/'), getEntries('./lib/app/scripts/')) | ||
) | ||
module.exports = [ | ||
{ | ||
mode: 'production', | ||
entry: getEntries('./lib/app/'), | ||
output: { | ||
path: resolve('./lib/app'), | ||
filename: '[name].js', | ||
webpack( | ||
[ | ||
{ | ||
mode: 'production', | ||
entry: getEntries('./lib/app/'), | ||
output: { | ||
path: resolve('./lib/app'), | ||
filename: '[name].js', | ||
}, | ||
}, | ||
}, | ||
{ | ||
mode: 'production', | ||
entry: getEntries('./lib/app/scripts/'), | ||
output: { | ||
path: resolve('./lib/app/scripts'), | ||
filename: '[name].js', | ||
{ | ||
mode: 'production', | ||
entry: getEntries('./lib/app/scripts/'), | ||
output: { | ||
path: resolve('./lib/app/scripts'), | ||
filename: '[name].js', | ||
}, | ||
}, | ||
}, | ||
] | ||
], | ||
(err, stats) => { | ||
if (err || stats.hasErrors()) { | ||
console.log(err) | ||
} | ||
console.log('Build done!') | ||
} | ||
) |
472486
9360