mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-30 15:59:37 -05:00
d64a0df5f6
Web GUI from Klas Eskilson (three new modules: webgui, webbrowser and cefwebgui) Parallel connection refactorization Wormhole server added to the main repository Transfer function editor work from Cristoffer Särevall Update ghoul
40 lines
839 B
JavaScript
40 lines
839 B
JavaScript
const { resolve } = require('path');
|
|
const webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
entry: './src/index.jsx',
|
|
|
|
output: {
|
|
filename: 'static/bundle.js',
|
|
// the output bundle
|
|
|
|
path: resolve(__dirname, 'dist'),
|
|
|
|
publicPath: '/'
|
|
// necessary for HMR to know where to load the hot update chunks
|
|
},
|
|
|
|
devtool: 'source-map',
|
|
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.jsx?$/,
|
|
use: [ 'babel-loader', ],
|
|
exclude: /node_modules/
|
|
},
|
|
{
|
|
test: /\.css$/,
|
|
use: [ 'style-loader', 'css-loader?modules', ],
|
|
},
|
|
],
|
|
},
|
|
|
|
plugins: [
|
|
new webpack.optimize.UglifyJsPlugin({
|
|
sourceMap: true,
|
|
comments: false
|
|
})
|
|
]
|
|
};
|