Add webpack cli config

This commit is contained in:
Mathias Biilmann Christensen 2016-12-30 11:14:23 -08:00
parent cbd2e7c904
commit 12f6c05d9a

22
webpack.cli.js Normal file
View File

@ -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',
},
});