Remove Node polyfills
							parent
							
								
									3c3161e924
								
							
						
					
					
						commit
						35962bd05e
					
				| 
						 | 
				
			
			@ -148,7 +148,7 @@ THE SOFTWARE.
 | 
			
		|||
                const contents = this.tarContents();
 | 
			
		||||
 | 
			
		||||
                // Convert it to base64 string
 | 
			
		||||
                const b64 = Buffer.from(contents).toString('base64');
 | 
			
		||||
                const b64 = btoa(String.fromCharCode(...contents));
 | 
			
		||||
                return `echo '${b64}' | base64 --decode > ${this.nginxDir}/${this.tarName}`;
 | 
			
		||||
            },
 | 
			
		||||
            setupCopy() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -32,13 +32,12 @@ const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack
 | 
			
		|||
module.exports = {
 | 
			
		||||
    publicPath: './',
 | 
			
		||||
    outputDir: 'dist',
 | 
			
		||||
    filenameHashing: false,
 | 
			
		||||
    filenameHashing: false, // Don't hash the output, so we can embed on the DigitalOcean Community
 | 
			
		||||
    productionSourceMap: false,
 | 
			
		||||
    configureWebpack: {
 | 
			
		||||
        node: false, // Disable Node.js polyfills (Buffer etc.) -- This will be default in Webpack 5
 | 
			
		||||
        plugins: [
 | 
			
		||||
            new LimitChunkCountPlugin({
 | 
			
		||||
                maxChunks: 1,
 | 
			
		||||
            }),
 | 
			
		||||
            new LimitChunkCountPlugin({ maxChunks: 1 }), // Generate a single CSS & JS file for easy embedding
 | 
			
		||||
            process.argv.includes('--analyze') && new BundleAnalyzerPlugin(),
 | 
			
		||||
            process.argv.includes('--analyze') && new DuplicatePackageCheckerPlugin(),
 | 
			
		||||
        ].filter(x => !!x),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue