diff --git a/src/webpack/template.html b/src/webpack/template.html index df6f1b8ac..203815250 100644 --- a/src/webpack/template.html +++ b/src/webpack/template.html @@ -5,6 +5,7 @@ + <%= htmlWebpackPlugin.options.head %>
diff --git a/src/webpack/webpack.config.dev.js b/src/webpack/webpack.config.dev.js index 79eda8306..ddb344386 100644 --- a/src/webpack/webpack.config.dev.js +++ b/src/webpack/webpack.config.dev.js @@ -1,4 +1,5 @@ const webpack = require('webpack'); +const { get } = require('lodash'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); @@ -41,7 +42,8 @@ const devConfig = { plugins: [ new webpack.NamedModulesPlugin(), new HtmlWebpackPlugin({ - template: paths.public.template + template: paths.public.template, + head: get(settings, 'config.additional.global.head') }), new CopyWebpackPlugin({ patterns: [