Files
xod/packages/xod-client-browser/webpack.config.dev.js
Kirill Shumilov d2027e79b3 chore(xod): update Webpack to v3 (bundle reduced x2), update Ramda versions, prepare it for further updates
Squashed commits:
[af77987] refactor(xod-client, xod-client-browser, xod-client-electron): move common webpack config into xod-client, and extend it with specific options in other endpoint clients (browser/electron)
[ddae62d] chore(xod): update `hm-def` to latest `0.2.1` version (that uses the same Ramda version)
[5d80680] chore(xod): prepare all Ramda imports and some functions to migrate to 0.25.1 to be optimized better by tree-shaker (0.25.0 already has a features for better tree shaking, but it has a lot of bugs and perfomance regressions, so we’ll stay at 0.24.1 for a while)
[9c05d6c] chore(xod-client-browser, xod-client-electron): enable UglifyJS webpack plugin to eliminate dead code and minify bundle (7.8MB -> 3.8MB)
[cafbfcf] chore(xod, xod-client-browser, xod-client-electron): update webpack to version 3, update loaders,
2017-12-29 13:31:32 +03:00

22 lines
554 B
JavaScript

const path = require('path');
/* eslint-disable import/no-extraneous-dependencies */
const merge = require('webpack-merge');
/* eslint-enable import/no-extraneous-dependencies */
const baseConfig = require('./webpack.config.js');
const pkgpath = subpath => path.join(__dirname, subpath);
module.exports = merge.smart(baseConfig, {
devtool: 'eval-source-map',
output: {
publicPath: 'http://localhost:8080/',
},
devServer: {
hot: true,
host: 'localhost',
port: 8080,
contentBase: pkgpath('dist'),
compress: true,
},
});