diff --git a/public/img/Zuugle_Opengraph.jpg b/public/img/Zuugle_Opengraph.jpg deleted file mode 100644 index e32bec3e..00000000 Binary files a/public/img/Zuugle_Opengraph.jpg and /dev/null differ diff --git a/public/img/Zuugle_Opengraph.png b/public/img/Zuugle_Opengraph.png deleted file mode 100644 index 0679ae8a..00000000 Binary files a/public/img/Zuugle_Opengraph.png and /dev/null differ diff --git a/public/img/Zuugle_Opengraph_orig.png b/public/img/Zuugle_Opengraph_orig.png deleted file mode 100644 index 55e97689..00000000 Binary files a/public/img/Zuugle_Opengraph_orig.png and /dev/null differ diff --git a/public/img/background_start.jpeg b/public/img/background_start.jpeg deleted file mode 100644 index 7542ee13..00000000 Binary files a/public/img/background_start.jpeg and /dev/null differ diff --git a/public/img/background_start.jpg b/public/img/background_start.jpg deleted file mode 100644 index 25a11946..00000000 Binary files a/public/img/background_start.jpg and /dev/null differ diff --git a/public/img/background_start2.jpg b/public/img/background_start2.jpg deleted file mode 100644 index 1e95e425..00000000 Binary files a/public/img/background_start2.jpg and /dev/null differ diff --git a/public/img/background_start3.jpg b/public/img/background_start3.jpg deleted file mode 100644 index 25a11946..00000000 Binary files a/public/img/background_start3.jpg and /dev/null differ diff --git a/public/img/background_start_mobil.jpeg b/public/img/background_start_mobil.jpeg deleted file mode 100644 index d0d139c9..00000000 Binary files a/public/img/background_start_mobil.jpeg and /dev/null differ diff --git a/public/img/background_start_mobil2.jpeg b/public/img/background_start_mobil2.jpeg deleted file mode 100644 index d0d139c9..00000000 Binary files a/public/img/background_start_mobil2.jpeg and /dev/null differ diff --git a/public/img/background_start_mobil2.webp b/public/img/background_start_mobil2.webp deleted file mode 100644 index 29312635..00000000 Binary files a/public/img/background_start_mobil2.webp and /dev/null differ diff --git a/public/img/background_start_mobil3.webp b/public/img/background_start_mobil3.webp deleted file mode 100644 index 80e3bad7..00000000 Binary files a/public/img/background_start_mobil3.webp and /dev/null differ diff --git a/public/img/background_start_mobil4.webp b/public/img/background_start_mobil4.webp deleted file mode 100644 index 551d68dc..00000000 Binary files a/public/img/background_start_mobil4.webp and /dev/null differ diff --git a/public/img/background_start_mobil_orig.webp b/public/img/background_start_mobil_orig.webp deleted file mode 100644 index b6aa9614..00000000 Binary files a/public/img/background_start_mobil_orig.webp and /dev/null differ diff --git a/public/img/background_start_small3.jpeg b/public/img/background_start_small3.jpeg deleted file mode 100644 index c2b372cb..00000000 Binary files a/public/img/background_start_small3.jpeg and /dev/null differ diff --git a/public/img/background_start_small3.webp b/public/img/background_start_small3.webp deleted file mode 100644 index c124dff8..00000000 Binary files a/public/img/background_start_small3.webp and /dev/null differ diff --git a/public/img/background_start_small_orig.jpeg b/public/img/background_start_small_orig.jpeg deleted file mode 100644 index 8582f89c..00000000 Binary files a/public/img/background_start_small_orig.jpeg and /dev/null differ diff --git a/public/img/region_placeholder.jpg b/public/img/region_placeholder.jpg deleted file mode 100644 index becd26f0..00000000 Binary files a/public/img/region_placeholder.jpg and /dev/null differ diff --git a/public/img/tour_placeholder.png b/public/img/tour_placeholder.png deleted file mode 100644 index 8e961e9c..00000000 Binary files a/public/img/tour_placeholder.png and /dev/null differ diff --git a/webpack.config_prod.js b/webpack.config_prod.js index 19fba112..4921fccf 100644 --- a/webpack.config_prod.js +++ b/webpack.config_prod.js @@ -2,10 +2,9 @@ const webpack = require('webpack'); const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); -const MiniCssExtractPlugin = require("mini-css-extract-plugin"); +const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const TerserPlugin = require('terser-webpack-plugin'); - const BUILD_DIR = path.resolve(__dirname, 'build'); // const SRC_DIR = path.resolve(__dirname, 'src'); @@ -13,94 +12,101 @@ const BUILD_DIR = path.resolve(__dirname, 'build'); // console.log('SRC_DIR', SRC_DIR); module.exports = { - mode: "production", - output: { - path: BUILD_DIR, - filename: './app_static/[name].bundle.js' - }, - watch: true, - devServer: { - contentBase: BUILD_DIR, - // port: 9001, - compress: true, - hot: true, - open: true, - historyApiFallback: true, - }, - module: { - rules: [ - { - test: /\.(js|jsx)$/, - exclude: /node_modules/, - use: { - loader: 'babel-loader', - options: { - presets: [ - ['@babel/preset-env', { targets: "defaults" }] - ] - } - } - }, - { - test: /\.html$/, - loader: 'html-loader' - }, - { - test: /\.(scss)$/, - loader: 'css-loader', - }, - { - test: /\.css$/i, - use: [MiniCssExtractPlugin.loader, "css-loader"], - }, - { - test: /\.svg$/i, - issuer: /\.[jt]sx?$/, - use: ['@svgr/webpack', 'url-loader'], - }, - { - test: /\.(png|jpg|jpeg|gif|ico)$/, - use: [ - { - // loader: 'url-loader' - loader: 'file-loader', - options: { - name: './img/[name].[hash].[ext]' - } - } - ] - }, - ] - }, - plugins: [ - new webpack.HotModuleReplacementPlugin(), - new HtmlWebpackPlugin( - { - inject: true, - template: './public/index.html' - } - ), - new CopyWebpackPlugin({ - patterns: [ - { from: "./public", to: "app_static" }, - ], - }), - new MiniCssExtractPlugin({ - filename: "./app_static/[name].styles.css", - attributes: { - }, - }), - new webpack.DefinePlugin({}), - ], - optimization: { - minimizer: [new TerserPlugin({ - terserOptions: { - format: { - comments: false, - }, - }, - extractComments: false, - })], - }, -} -; \ No newline at end of file + mode: 'production', + output: { + path: BUILD_DIR, + filename: './app_static/[name].bundle.js', + }, + watch: true, + devServer: { + contentBase: BUILD_DIR, + // port: 9001, + compress: true, + hot: true, + open: true, + historyApiFallback: true, + }, + module: { + rules: [ + { + test: /\.(js|jsx)$/, + exclude: /node_modules/, + use: { + loader: 'babel-loader', + options: { + presets: [['@babel/preset-env', { targets: 'defaults' }]], + }, + }, + }, + { + test: /\.html$/, + loader: 'html-loader', + }, + { + test: /\.(scss)$/, + loader: 'css-loader', + }, + { + test: /\.css$/i, + use: [MiniCssExtractPlugin.loader, 'css-loader'], + }, + { + test: /\.svg$/i, + issuer: /\.[jt]sx?$/, + use: ['@svgr/webpack', 'url-loader'], + }, + { + test: /\.(png|jpg|jpeg|gif|ico)$/, + use: [ + { + // loader: 'url-loader' + loader: 'file-loader', + options: { + name: './img/[name].[hash].[ext]', + }, + }, + ], + }, + ], + }, + plugins: [ + new webpack.HotModuleReplacementPlugin(), + new HtmlWebpackPlugin({ + inject: true, + template: './public/index.html', + }), + new CopyWebpackPlugin({ + patterns: [{ from: './public', to: 'app_static' }], + }), + new MiniCssExtractPlugin({ + filename: './app_static/[name].styles.css', + attributes: {}, + }), + new webpack.DefinePlugin({}), + { + apply: (compiler) => { + compiler.hooks.done.tap('DonePlugin', (stats) => { + console.log('Compile is done !'); + setTimeout(() => { + process.exit(0); + }); + }); + }, + }, + ], + optimization: { + splitChunks: { + chunks: 'all', + }, + minimizer: [ + new TerserPlugin({ + terserOptions: { + format: { + comments: false, + }, + }, + extractComments: false, + }), + ], + }, +};