From 12f6c05d9a6fa396fdd98147c587c74fb7562c28 Mon Sep 17 00:00:00 2001 From: Mathias Biilmann Christensen Date: Fri, 30 Dec 2016 11:14:23 -0800 Subject: [PATCH] Add webpack cli config --- webpack.cli.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 webpack.cli.js diff --git a/webpack.cli.js b/webpack.cli.js new file mode 100644 index 00000000..5eacd5a5 --- /dev/null +++ b/webpack.cli.js @@ -0,0 +1,22 @@ +/* global module, __dirname, require */ +const path = require('path'); +const webpack = require('webpack'); +const merge = require('webpack-merge'); + +module.exports = merge.smart(require('./webpack.base.js'), { + plugins: [ + new webpack.BannerPlugin('#!/usr/bin/env node', { raw: true }), + ], + entry: { + "autoconfigure.collection": './scripts/autoconfigure.collection', + }, + output: { + path: path.join(__dirname, 'bin'), + filename: '[name].js', + }, + externals: { + fs: 'commonjs fs', + path: 'commonjs path', + process: 'commonjs process', + }, +});