1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-11 05:40:11 +02:00
copilot/frontend-technical-prototype/webpack/development.js
JUDIT GRESKOVITS 7e2bfce707 Rock and roll
2017-05-23 17:23:37 +01:00

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
});