From 2ffb88c979a212b3433526be9d23d056636b63e2 Mon Sep 17 00:00:00 2001 From: Ivan Diaz Date: Mon, 7 Oct 2019 14:50:10 -0300 Subject: [PATCH] Use single build file (#635) --- client/src/index.html | 1 + client/src/index.php | 1 - client/webpack.config.js | 23 +---------------------- 3 files changed, 2 insertions(+), 23 deletions(-) diff --git a/client/src/index.html b/client/src/index.html index 969722e9..90c8c2e2 100755 --- a/client/src/index.html +++ b/client/src/index.html @@ -13,6 +13,7 @@
+ diff --git a/client/src/index.php b/client/src/index.php index 750d5402..abd6c654 100755 --- a/client/src/index.php +++ b/client/src/index.php @@ -28,7 +28,6 @@ - diff --git a/client/webpack.config.js b/client/webpack.config.js index 39f959a1..3489ce2a 100644 --- a/client/webpack.config.js +++ b/client/webpack.config.js @@ -10,15 +10,11 @@ const {dependencies} = require('./package.json'); const BUILD_DIR = path.join(__dirname, 'build'); const APP_DIR = path.join(__dirname, 'src'); -const VENDOR_LIST = Object.keys(dependencies); - const config = env => { return { devtool: 'source-map', entry: { - config: APP_DIR + '/config.js', bundle: APP_DIR + '/index.js', - vendor: VENDOR_LIST, }, output: { path: BUILD_DIR, @@ -93,30 +89,13 @@ const config = env => { // }), new CopyPlugin([ './src/.htaccess', + './src/config.js', {from: './src/assets/images', to: 'images'}, ]), new BundleAnalyzerPlugin({ analyzerMode: process.env.NODE_ENV !== 'production' ? 'server' : 'disabled' }), ], - optimization: { - splitChunks: { - cacheGroups: { - config: { - chunks: 'initial', - name: 'config', - test: 'config', - enforce: true, - }, - vendor: { - chunks: 'initial', - name: 'vendor', - test: 'vendor', - enforce: true, - }, - } - }, - }, resolve: { modules: ['./src', './node_modules'] },