Files
OpenSpace/modules/webgui/web/webpack.config.production.js
T
Emil Axelsson d64a0df5f6 Feature/thesis work merge (#566)
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
2018-03-20 09:30:59 +01:00

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
})
]
};