From ae878f6000af1f70bca0574b9a838ffd292070d1 Mon Sep 17 00:00:00 2001 From: orangemug Date: Mon, 17 Feb 2020 19:03:19 +0000 Subject: [PATCH] Added missing plugin from production. --- config/webpack.production.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/webpack.production.config.js b/config/webpack.production.config.js index f69a605..191b8ca 100644 --- a/config/webpack.production.config.js +++ b/config/webpack.production.config.js @@ -2,6 +2,7 @@ var webpack = require('webpack'); var path = require('path'); var rules = require('./webpack.rules'); var HtmlWebpackPlugin = require('html-webpack-plugin'); +var HtmlWebpackInlineSVGPlugin = require('html-webpack-inline-svg-plugin'); var WebpackCleanupPlugin = require('webpack-cleanup-plugin'); var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; var CopyWebpackPlugin = require('copy-webpack-plugin'); @@ -44,6 +45,9 @@ module.exports = { template: './src/template.html', title: 'Maputnik' }), + new HtmlWebpackInlineSVGPlugin({ + runPreEmit: true, + }), new CopyWebpackPlugin([ { from: './src/manifest.json',