1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 06:00:06 +02:00

in development, only build docs/index

This commit is contained in:
Sérgio Ramos 2016-10-26 17:31:55 +01:00
parent e91c28ad81
commit 7e88e74095

View File

@ -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({