New: Small UI tweaks and package updates

This commit is contained in:
Qstick 2018-11-29 22:11:48 -05:00
parent c7d17598e2
commit d63bb77edc
11 changed files with 600 additions and 365 deletions

View file

@ -41,6 +41,8 @@ const plugins = [
})
];
let babelPlugins = ['transform-class-properties', 'transform-react-jsx-source'];
if (isProduction) {
plugins.push(new UglifyJSPlugin({
sourceMap: true,
@ -52,6 +54,8 @@ if (isProduction) {
}
}
}));
babelPlugins = ['transform-class-properties', 'transform-react-remove-prop-types'];
}
const config = {
@ -102,14 +106,9 @@ const config = {
test: /\.js?$/,
exclude: /(node_modules|JsLibraries)/,
loader: 'babel-loader',
query: {
plugins: ['transform-class-properties'],
presets: ['es2015', 'decorators-legacy', 'react', 'stage-2'],
env: {
development: {
plugins: ['transform-react-jsx-source']
}
}
options: {
plugins: babelPlugins,
presets: ['env', 'decorators-legacy', 'react', 'stage-2']
}
},