Files
xod/packages/xod-client-browser/webpack.config.dev.js
Evgeny Kochetkov 0448ea49b5 infra(xod-client, xod-client-browser, xod-client-electron): upgrade react to 15.4.2, get rid of react-hot-loader
Benefits of a fresher version of React don't need an explanation :)

And `react-hot-loader` was not doing anything for us — page was fully reloaded on every change anyway.
2017-03-02 19:51:06 +03:00

28 lines
672 B
JavaScript

const path = require('path');
const validate = require('webpack-validator');
const merge = require('webpack-merge');
const baseConfig = require('./webpack.config.js');
const pkgpath = subpath => path.join(__dirname, subpath);
const config = merge.smart(baseConfig, {
output: {
publicPath: 'http://localhost:8080/',
},
devServer: {
hot: true,
host: 'localhost',
port: 8080,
contentBase: pkgpath('dist'),
},
resolve: {
modulesDirectories: [
// search top-level node_modules for webpack-hot-loader
pkgpath('../../node_modules'),
],
extensions: ['', '.js', '.jsx', '.scss'],
},
});
module.exports = validate(config);