mirror of
https://github.com/yldio/copilot.git
synced 2024-12-05 01:20:08 +02:00
31 lines
603 B
JavaScript
31 lines
603 B
JavaScript
|
const base = require('./base');
|
||
|
const plugins = require('./plugins');
|
||
|
const path = require('path');
|
||
|
|
||
|
const STATIC = path.join(__dirname, '../static');
|
||
|
|
||
|
const devServer = {
|
||
|
contentBase: [
|
||
|
STATIC
|
||
|
],
|
||
|
hot: true,
|
||
|
compress: true,
|
||
|
lazy: false,
|
||
|
historyApiFallback: {
|
||
|
index: './index.html'
|
||
|
}
|
||
|
};
|
||
|
|
||
|
module.exports = Object.assign(base, {
|
||
|
entry: [
|
||
|
'react-hot-loader/patch',
|
||
|
'webpack-dev-server/client?http://localhost:8080',
|
||
|
'webpack/hot/only-dev-server',
|
||
|
'./docs/src/index.js'
|
||
|
],
|
||
|
plugins: base.plugins.concat([
|
||
|
plugins['hot-module-replacement']
|
||
|
]),
|
||
|
devServer
|
||
|
});
|