From 378ae0fe01af12f9b28e49795da6fde49ce7e503 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Tue, 5 Jan 2021 18:02:18 +0100 Subject: [PATCH] Deliver frontend using nginx and generate static files --- front/.gitignore | 4 +++- front/{dist => src}/index.html | 10 ---------- front/webpack.config.js | 4 ++-- 3 files changed, 5 insertions(+), 13 deletions(-) rename front/{dist => src}/index.html (95%) diff --git a/front/.gitignore b/front/.gitignore index e77b54d0..678f9c44 100644 --- a/front/.gitignore +++ b/front/.gitignore @@ -5,4 +5,6 @@ /dist/webpack.config.js /dist/webpack.config.js.map /dist/src -*.sh \ No newline at end of file +*.sh +/dist/index.html +/dist/main.js* diff --git a/front/dist/index.html b/front/src/index.html similarity index 95% rename from front/dist/index.html rename to front/src/index.html index 9a197822..7de282ef 100644 --- a/front/dist/index.html +++ b/front/src/index.html @@ -6,16 +6,6 @@ content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> - - - - diff --git a/front/webpack.config.js b/front/webpack.config.js index 82bb34fa..e03766f2 100644 --- a/front/webpack.config.js +++ b/front/webpack.config.js @@ -29,7 +29,7 @@ module.exports = { extensions: [ '.tsx', '.ts', '.js' ], }, output: { - filename: '[name].[contenthash].js', + filename: '[name].js', path: path.resolve(__dirname, 'dist'), publicPath: '/' }, @@ -39,7 +39,7 @@ module.exports = { plugins: [ new HtmlWebpackPlugin( { - template: './dist/index.html' + template: './src/index.html' } ), new webpack.ProvidePlugin({