1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-11 05:40:11 +02:00
copilot/frontend/webpack/development.js

45 lines
929 B
JavaScript
Raw Normal View History

// const graphql = require('../../cloudapi-graphql/src/endpoint');
const plugins = require('./plugins');
const base = require('./base');
2016-10-20 04:14:26 +03:00
const devServer = {
hot: true,
quiet: true,
clientLogLevel: 'none',
2016-10-20 04:14:26 +03:00
compress: true,
lazy: false,
publicPath: base.output.publicPath,
2016-10-20 04:14:26 +03:00
setup: (app) => {
// app.use('/graphql', graphql);
2016-10-20 04:14:26 +03:00
},
historyApiFallback: {
index: './static/index.html'
},
watchOptions: {
ignored: /node_modules/
2016-10-20 04:14:26 +03:00
}
};
module.exports = Object.assign(base, {
devtool: 'cheap-module-source-map',
2016-10-20 04:14:26 +03:00
entry: [
'react-dev-utils/webpackHotDevClient',
2016-12-12 18:27:33 +02:00
base.entry
2016-10-20 04:14:26 +03:00
],
plugins: base.plugins.concat([
plugins['named-modules'](),
plugins['hot-module-replacement'](),
plugins['watch-missing-node-modules'](),
plugins['case-sensitive-paths']()
2016-10-20 04:14:26 +03:00
]),
node: {
fs: 'empty',
net: 'empty',
tls: 'empty'
},
performance: {
hints: false
},
2016-10-20 04:14:26 +03:00
devServer
});