mirror of
https://github.com/xodio/xod.git
synced 2026-03-03 07:24:03 +01:00
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,
22 lines
554 B
JavaScript
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,
|
|
},
|
|
});
|