From 7e88e74095f6772dba1cf3c1298225c2231fc801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Wed, 26 Oct 2016 17:31:55 +0100 Subject: [PATCH] in development, only build docs/index --- ui/webpack/development.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/ui/webpack/development.js b/ui/webpack/development.js index ff219536..d4cb0e09 100644 --- a/ui/webpack/development.js +++ b/ui/webpack/development.js @@ -1,6 +1,5 @@ const pkg = require('../package.json'); const base = require('./base.js'); -const entries = require('./entrypoints'); const webpack = require('webpack'); const devServer = { @@ -14,16 +13,14 @@ const devServer = { }; module.exports = Object.assign(base.config, { - entry: entries.reduce((all, entry) => { - all[entry.name] = [ + entry: { + docs: [ 'react-hot-loader/patch', 'webpack-dev-server/client?http://localhost:8080', 'webpack/hot/only-dev-server', - entry.path - ]; - - return all; - }, {}), + './docs/index.js' + ] + }, plugins: base.config.plugins.concat([ new webpack.HotModuleReplacementPlugin(), new webpack.DefinePlugin({