diff --git a/client/package.json b/client/package.json index c72d7576..a53f832c 100644 --- a/client/package.json +++ b/client/package.json @@ -28,6 +28,7 @@ "@babel/preset-react": "^7.0.0", "@babel/register": "^7.5.5", "axios-mock-adapter": "^1.15.0", + "babel-loader": "^8.0.6", "babel-plugin-add-module-exports": "^1.0.2", "browser-sync": "^2.7.13", "chai": "^3.5.0", @@ -45,6 +46,7 @@ "jsdom": "^8.4.1", "mocha": "^6.2.0", "morgan": "^1.6.1", + "node-sass": "^4.12.0", "nodemon": "^1.19.1", "path": "^0.12.7", "proxyquire": "^1.7.4", @@ -67,8 +69,6 @@ "dependencies": { "axios": "^0.18.0", "classnames": "^2.2.5", - "font-awesome": "^4.7.0", - "font-awesome-sass-loader": "^2.0.1", "history": "^3.0.0", "html-to-text": "^4.0.0", "keycode": "^2.1.4", diff --git a/client/src/app/App.js b/client/src/app/App.js index 1db8bb8d..c62353cf 100644 --- a/client/src/app/App.js +++ b/client/src/app/App.js @@ -111,7 +111,7 @@ class App extends React.Component { history.push('/admin'); } - if(proccess.env.NODE_ENV === 'production' && _.includes(props.location.pathname, '/components-demo')) { + if(process.env.NODE_ENV === 'production' && _.includes(props.location.pathname, '/components-demo')) { history.push('/'); } } diff --git a/client/src/index.html b/client/src/index.html index c0122ed5..969722e9 100755 --- a/client/src/index.html +++ b/client/src/index.html @@ -9,9 +9,8 @@ OpenSupports - + -
diff --git a/client/src/index.js b/client/src/index.js index 0c09fa02..53823ac4 100644 --- a/client/src/index.js +++ b/client/src/index.js @@ -7,7 +7,6 @@ import ConfigActions from 'actions/config-actions'; import routes from 'app/Routes'; import store from 'app/store'; -import 'font-awesome-sass-loader'; import './main.scss'; Array.prototype.swap = function (x,y) { diff --git a/client/src/index.php b/client/src/index.php index 0bd4d901..750d5402 100755 --- a/client/src/index.php +++ b/client/src/index.php @@ -12,8 +12,8 @@ OpenSupports - +
@@ -28,6 +28,7 @@ - + + diff --git a/client/webpack.config.js b/client/webpack.config.js index ac9732c7..39f959a1 100644 --- a/client/webpack.config.js +++ b/client/webpack.config.js @@ -95,7 +95,9 @@ const config = env => { './src/.htaccess', {from: './src/assets/images', to: 'images'}, ]), - new BundleAnalyzerPlugin(), + new BundleAnalyzerPlugin({ + analyzerMode: process.env.NODE_ENV !== 'production' ? 'server' : 'disabled' + }), ], optimization: { splitChunks: {