mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-26 18:30:40 +01:00
Added manifest.json to production webpack config.
This commit is contained in:
parent
2d87e162f1
commit
1f5608ec77
1 changed files with 7 additions and 0 deletions
|
@ -6,6 +6,7 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
|||
var HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
var WebpackCleanupPlugin = require('webpack-cleanup-plugin');
|
||||
var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||
var CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
|
||||
var OUTPATH;
|
||||
if(process.env.CIRCLE_ARTIFACTS) {
|
||||
|
@ -80,6 +81,12 @@ module.exports = {
|
|||
template: './src/template.html',
|
||||
title: 'Maputnik'
|
||||
}),
|
||||
new CopyWebpackPlugin([
|
||||
{
|
||||
from: './src/manifest.json',
|
||||
to: 'manifest.json'
|
||||
}
|
||||
]),
|
||||
new BundleAnalyzerPlugin({
|
||||
analyzerMode: 'static',
|
||||
defaultSizes: 'gzip',
|
||||
|
|
Loading…
Reference in a new issue