enables production admin static routes

This commit is contained in:
James
2020-06-12 16:21:30 -04:00
parent 4e63863338
commit 15628ebe88
7 changed files with 25 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
// const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const path = require('path');
const getStyleLoaders = require('./getStyleLoaders');
@@ -36,8 +36,6 @@ module.exports = (config) => {
require.resolve('@babel/preset-env'),
{
modules: 'commonjs',
targets: '> 1%, not dead',
},
],
require.resolve('@babel/preset-react'),
@@ -98,9 +96,7 @@ module.exports = (config) => {
],
},
plugins: [
new BundleAnalyzerPlugin({
generateStatsFile: true,
}),
// new BundleAnalyzerPlugin(),
new HtmlWebpackPlugin({
template: path.resolve(__dirname, '../client/index.html'),
filename: './index.html',