1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 15:20:06 +02:00
copilot/frontend/webpack/development.js
Sérgio Ramos 2589ad59a7 remove eslint-loader
fixes #349
2017-03-03 15:06:32 +00: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
});