mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 22:20:06 +02:00
2589ad59a7
fixes #349
43 lines
850 B
JavaScript
43 lines
850 B
JavaScript
// const graphql = require('../../cloudapi-graphql/src/endpoint');
|
|
const plugins = require('./plugins');
|
|
const base = require('./base');
|
|
|
|
const devServer = {
|
|
hot: true,
|
|
quiet: true,
|
|
clientLogLevel: 'none',
|
|
compress: true,
|
|
lazy: false,
|
|
publicPath: base.output.publicPath,
|
|
setup: (app) => {
|
|
// app.use('/graphql', graphql);
|
|
},
|
|
historyApiFallback: {
|
|
index: './static/index.html'
|
|
},
|
|
watchOptions: {
|
|
ignored: /node_modules/
|
|
}
|
|
};
|
|
|
|
module.exports = Object.assign(base, {
|
|
devtool: 'eval-source-map',
|
|
entry: [
|
|
'react-dev-utils/webpackHotDevClient',
|
|
base.entry
|
|
],
|
|
plugins: base.plugins.concat([
|
|
plugins['hot-module-replacement'](),
|
|
plugins['watch-missing-node-modules']()
|
|
]),
|
|
node: {
|
|
fs: 'empty',
|
|
net: 'empty',
|
|
tls: 'empty'
|
|
},
|
|
performance: {
|
|
hints: false
|
|
},
|
|
devServer
|
|
});
|