mirror of
https://github.com/yldio/copilot.git
synced 2024-11-10 21:30:06 +02:00
in development, only build docs/index
This commit is contained in:
parent
e91c28ad81
commit
7e88e74095
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user