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',