mirror of
				https://github.com/KevinMidboe/planetposen.git
				synced 2025-10-29 17:50:32 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			655 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			655 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
"use strict";
 | 
						|
 | 
						|
const HtmlWebpackPlugin = require("html-webpack-plugin");
 | 
						|
const helpers = require("./helpers");
 | 
						|
 | 
						|
const PlanetposenConfig = {
 | 
						|
  entry: {
 | 
						|
    planetposen: ["@babel/polyfill", helpers.root("frontend", "main")]
 | 
						|
  },
 | 
						|
  optimization: {
 | 
						|
    minimizer: [
 | 
						|
      new HtmlWebpackPlugin({
 | 
						|
        chunks: ["planetposen"],
 | 
						|
        filename: "../index.html",
 | 
						|
        template: "./frontend/index.html",
 | 
						|
        inject: true,
 | 
						|
        minify: {
 | 
						|
          removeComments: true,
 | 
						|
          collapseWhitespace: false,
 | 
						|
          preserveLineBreaks: true,
 | 
						|
          removeAttributeQuotes: true
 | 
						|
        }
 | 
						|
      })
 | 
						|
    ]
 | 
						|
  }
 | 
						|
};
 | 
						|
 | 
						|
module.exports = PlanetposenConfig;
 |